On 12/4/13 10:19 AM, Damien Kick wrote: > I don't find anything useful here <http://daemonic.sourceforge.net> or > here <http://sourceforge.net/projects/daemonic/>. There is also no > man page I can find. So ... how is one meant to use daemonic? What > do these commands do? > > $ daemonic -h > Usage: daemonic command parameters... > Valid commands: > enable <servicename>... > disable <servicename>... > install <servicename>... > update <servicename>... > remove <servicename>... > dump > $ > > Well, 'daemonic dump' is obvious enough. For example, I've recently > 'fink install'ed nginx. This is what 'deamonic dump' told me about > it. > > service net.nginx.nginx: > description "Nginx web server" > message "Nginx 1.4.4" > startmessage "Starting Nginx 1.4.4" > stopmessage "Stopping Nginx 1.4.4" > restartmessage "Restarting Nginx 1.4.4" > daemon net.nginx.nginx: > executable "/sw/sbin/nginx" > parameters -not set- > configfile "/sw/etc/nginx/nginx.conf" > pidfile "/sw/var/run/nginx.pid" > prerun -not set- > > 'daemonic enable' seemed like a good place to start. > > $ sudo daemonic enable net.nginx.nginx > Password: > $ > > Okay ... Digging around a bit more in the Intertubes, looks like it > did the following. > > $ ls -F /Library/StartupItems/ > cma/ daemonic-net.nginx.nginx/ > daemonic-dbus/ > $ > > But it didn't start anything. > > $ ps ax | grep nginx > 47876 s003 R+ 0:00.01 grep nginx > $ > > And this just did ... I have no fscking idea. > > $ sudo daemonic install net.nginx.nginx > Password: > $ ps ax | grep daemonic > 47883 s003 R+ 0:00.01 grep daemonic > $ > > Thanks in advance for any help. > > >
Yeah, the documentation isn't completely transparent. daemonic doesn't actually start services: "install" registers a service as potentially startable at boot time. "enable" makes it startable. "disable" makes it not startable. "remove" unregisters the service. "update" replaces an older configuration with a new one. To start the service without a reboot, you either need to start it yourself or the package that provides it should start it for you. nginx is _supposed_ to start its service after installation, though: Fiona:Downloads hansen$ fink dumpinfo -fpostinstscript nginx Information about 8867 packages read in 1 seconds. postinstscript: #/bin/sh -ex if [ "$1" = "configure" ]; then /usr/sbin/chown -R www:www /sw/var/log/nginx /sw/var/lib/nginx /sw/var/nginx/www /sw/var/lock/nginx /sw/bin/daemonic install net.nginx.nginx fi if [ "$1" = "upgrade" ]; then /sw/bin/daemonic update net.nginx.nginx fi /sw/bin/daemonic enable net.nginx.nginx if [ -f /sw/var/run/nginx.pid ]; then echo "Stopping nginx" killall nginx 2>/dev/null echo "Starting nginx" /sw/sbin/nginx fi Anyway, doing a "/sw/sbin/nginx &" should start it in the background for you. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users