runit-2.1.2 on my ubuntu box,
And, I Created very simple
streaming service as below,
mkdir -p /etc/sv/streaming/ echo 'echo "streaming" >> /var/log/streaming.log' > /etc/sv/streaming/run
created symlink to
ln -s /etc/sv/streaming /etc/service/streaming
As, I can see below, symlink is created,
root@moby:/# ll /etc/service/streaming lrwxrwxrwx 1 root root 17 Dec 2 00:27 /etc/service/streaming -> /etc/sv/streaming/
Waited 5 secs, nothing happens.
I also tried manually as below,
root@moby:/# sv status /etc/service/streaming warning: /etc/service/streaming: unable to open supervise/ok: file does not exist
I'm using ubuntu 16.04
root@moby:/# cat /etc/*release | grep RELEASE DISTRIB_RELEASE=16.04
I feel like
runit is not running at all.
root@moby:/# ps -ef | grep runsvdir root 1976 7 0 00:58 ? 00:00:00 grep --color=auto runsvdir
I don't know the script to start runit either,
root@moby:/# service runit start runit: unrecognized service
root@moby:/# service sv status sv: unrecognized service
runit users help me know what's going on here?