Hi!
On Wed, Sep 11, 2013 at 06:11:35PM +0200, Subba Rao wrote:
> ssmtp myemail_at_yahoo.com <mailto:myemail_at_yahoo.com> < /home/user1/reminders/reminder1.txt
I think you have to add quotes around <mailto:myemail_at_yahoo.com> param.
> I would like to setup this as a user level service.  How do I do that?
Pure user setup which doesn't require root at all is add user's cron task
which should run every 1 minute, check is runsvdir already running on some
user's directory, and run it if it isn't. Example:
*/1 * * * *  ( cd ~/services && exec chpst -L .lock runsvdir . &>/dev/null ) &
Another way is add (as root) usual global service which will change UID to
some user's account and run runsvdir on some user's directory.
Comparing to cron-based solution:
    Pros:
    - you don't need cron
    - you don't need .lock-file
    - your user services will be started immediately after system boot
      (in cron-based they can be started up to 1 minute later)
    Cons:
    - you need root access to setup it
    - users can't change their setup without root (for example, user may
      have several projects, each with own services and thus own directory
      with services)
-- 
			WBR, Alex.
Received on Wed Sep 11 2013 - 16:38:13 UTC