case "$1" in
'start')
dbhub_start
;;
'stop')
dbhub_stop
;;
'restart')
dbhub_restart
;;
*)
dbhub_start
esac
in terminal:
make a file /etc/init.d/dbhub (sudo gedit /etc/init.d/dbhub)
paste above into it... but change the fourth line to the user that dbhub runs under (su yourusername -c /usr/local/bin/dbhub)
save it, then make it executable (sudo chmod +x /etc/init.d/dbhub)
update rc.d (sudo update-rc.d dbhub defaults)
I think that better way is using cron instead of rc.d, because you can run hub as a common user and you can run more that one hub if you need (on different accounts or even on the same with -w switch)
I think that better way is using cron instead of rc.d, because you can run hub as a common user and you can run more that one hub if you need (on different accounts or even on the same with -w switch)
hmm explain yourself, because I've no idea how it realy works.
FreeBSD uses RC scripts for starting services.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum