You are not logged in.
I've been trying to set up hamachi running as a daemon. first, I had hamachi initialize a directory:
$ su -c 'hamachi-init -c /etc/hamachi'
currently, I have /etc/rc.d/hamachi:
#!/bin/bash
# general config
. /etc/rc.conf
. /etc/rc.d/functions
case "$1" in
start)
#check for running tuntap, start when not running
ck_daemon tuntap && /etc/rc.d/tuntap start
stat_busy "Starting hamachi"
hamachi -c /etc/hamachi start > /dev/null 2>&1
if [ $? -ne 0 ]; then
stat_fail
else
add_daemon hamachi
stat_done
fi
;;
stop)
stat_busy "Stopping hamachi"
hamachi -c /etc/hamachi stop > /dev/null 2>&1
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon hamachi
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
;;
esac
exit 0
and that works fine. however, i also would like to have a hamachi group so that way i dont have to be root to list the people connected to my network. i already added group 'hamachi' and added my username to that group. not really sure where to go from here. any unix permission gurus out there got any ideas?
Last edited by sdellysse (2009-12-15 13:57:12)
Offline