here's my smokeping slave startup script which runs the slave as user
smokeping; add the "-c" option to specify a config file if needed.
#!/bin/bash
if [ "$1" == "-d" ] ; then
OPTS="--debug-daemon --nodaemon"
fi
su - smokeping -s /bin/bash -c "/usr/local/smokeping/bin/smokeping
$OPTS --master-url=http://smokeping.example.com
--cache-dir=/usr/local/smokeping/cache
--shared-secret=/usr/local/smokeping/etc/secret"
here's my master start script
#!/bin/bash
if [ "$1" == "-d" ] ; then
OPTS="--debug-daemon --nodaemon"
fi
cd /usr/local/smokeping
chown -R smokeping:smokeping data
chmod -R g+w cache data var
su - smokeping -s /bin/bash -c "cd /usr/local/smokeping ; bin/smokeping $OPTS"
_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users