Devuan5 init diversity edition

@ProwlerGr

Success with vsftpd-log.
I now understand that it ties the -srv and -log services together into a bundle, and you can refer to the whole as vsftpd

root@init-diversity:~# s6-rc stop vsftpd
root@init-diversity:~# s6-rc start vsftpd
root@init-diversity:~# ps ax | grep ftp
28878 ?        S      0:00 s6-supervise vsftpd-srv
28880 ?        S      0:00 s6-supervise vsftpd-log
29668 ?        Ss     0:00 s6-log -d3 -b -- n3 s2000000 T /var/log/vsftpd
29674 ?        Ss     0:00 /usr/sbin/vsftpd /etc/vsftpd.conf
29781 pts/0    S+     0:00 grep ftp

The daemon vsftpd is running , and there is an s6-log running for it.

What was the problem?
Quite esoteric… my copy of the run file for vsftpd-log had some strange unprintable characters inthe importas line.

$ od -a vsftpdlogrun.correct  | more
0000000   #   !   /   b   i   n   /   e   x   e   c   l   i   n   e   b
0000020  sp   -   P  nl   e   n   v   f   i   l   e  sp   /   e   t   c
0000040   /   s   6   -   r   c   /   c   o   n   f   i   g   /   v   s
0000060   f   t   p   d   .   c   o   n   f  nl   i   m   p   o   r   t
0000100   a   s  sp   -   s   C   u   D  sp   "   n   3  sp   s   2   0
0000120   0   0   0   0   0  sp   T   "  sp   D   I   R   E   C   T   I
0000140   V   E   S  sp   D   I   R   E   C   T   I   V   E   S  nl   i


$ od -a vsftpdlogrun.wrong | more
0000000   #   !   /   b   i   n   /   e   x   e   c   l   i   n   e   b
0000020  sp   -   P  nl   e   n   v   f   i   l   e  sp   /   e   t   c
0000040   /   s   6   -   r   c   /   c   o   n   f   i   g   /   v   s
0000060   f   t   p   d   .   c   o   n   f  nl   i   m   p   o   r   t
0000100   a   s  sp   -   s   C   u   D  sp   b nul  fs   n   3  sp   s
0000120   2   0   0   0   0   0   0  sp   T   b nul  gs  sp   D   I   R
0000140   E   C   T   I   V   E   S  sp   D   I   R   E   C   T   I   V
0000160   E   S  nl   i   f   e   l   s   e  sp   {  sp   t   e   s   t

That took some time to find.
b nul fs instead of "
but they both print as quote??
Some copy/paste problem I imagine.

So now when I list bundles

$ s6-rc-db list bundles
...
vsftpd
...

I get vsftpd ( among others),
but if I list longruns

$s6-rc-db list longruns
...
vsftpd-log
vsftpd-srv
...

I get the log and server daemons separately.

The s6-rc Service Manager does not list the bundle, only the individual daemons.

I think it is time for a summary of s6 with s6-rc, and then a move on
to s6 with s6-66.

3 Likes