User level service

From: Subba Rao <>
Date: Wed, 11 Sep 2013 18:11:35 +0200


I am new to using runit. Long ago I have used djb's daemontools and now
I have switched to runit.

Now I would like to setup a user level service which uses ssmtp to send
out reminders. The script looks as follows:

while :
ssmtp <> <
     echo `date`: "Testing email script..." >> ./log.txt
sleep 5000

All this was created as root on my Raspbian. The "log.txt" file has
entries for each interation but there is no email sent out. If I typed
in the ssmtp command in a terminal then the email does go out. What am
I missing here?

I would like to setup this as a user level service. How do I do that?

Any guidance and help appreciated. Thank you in advance.


Subba Rao
Received on Wed Sep 11 2013 - 16:11:35 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:18 UTC