2011/7/31 Miklos Vajna <[email protected]>: > On Tue, Jun 07, 2011 at 01:56:33PM +0200, Devil505 <[email protected]> > wrote: >> Of course, here are FrugalBuild with files. > > Sorry for not responding earlier, so I'm attaching a patch that works > here. > > What I changed: > > - depends fix > - backup fix > - system unit fix > > I would recommend running at least systemctl daemon-reload on > install/upgrade/remove so systemd will be aware of the new service file. > In its current form a user can't run "systemctl start sabnzbd.service". > > Explaining the systemd part: > > - first, /etc/sysconfig/$name is not magically sourced, you need an > EnvironmentFile= line for that > - I've removed the -d option and Type=forking: in systemd we try to run > daemons in the foreground, so even if the process forks off multiple > processes, it'll be obvious which process to kill first on stop > - ExecStart needs a full path of the program, if /bin/foo, not foo > - as you already figured, ExecStart supports variables, but $foo and > ${foo} has a different meaning. if $foo may contain spaces and that > may mean multiple arguments, then you need $foo. if you want the > variable to become part of a string, you need ${foo} > > Oh, and probably rename .confd to .sysconfig. :) >
Thanks for your help and explaination,s :) -- Devil505 Member of Frugalware Linux development team - http://frugalware.org Blog http://frugalware.org/~devil505/blog _______________________________________________ Frugalware-devel mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-devel
