Re: Sample systemd service init file please

2014-12-14 Thread T o n g
On Sat, 13 Dec 2014 21:00:56 -0800, Russ Allbery wrote: Can you provide me a sample systemd service init file, that correspond to init.d script please? I.e., the corresponding file for systemd to replace /etc/init.d/service. Take a look at the lbcd package in Debian. It has an init script,

Re: Sample systemd service init file please

2014-12-14 Thread Norbert Preining
On Sun, 14 Dec 2014, T o n g wrote: +if HAVE_SYSTEMD Shouldn't that be ifdef HAVE_SYSTEMD ... endif W: dbab: executable-not-elf-or-script etc/systemd/dbab.service Remove the x bits from your service file? E: dbab: systemd-no-service-for-init-script dbab Should be

Re: Sample systemd service init file please

2014-12-14 Thread Russ Allbery
T o n g mlist4sunt...@yahoo.com writes: --- a/src/Makefile +++ b/src/Makefile @@ -8,6 +8,12 @@ docdir = ${prefix}/share/doc/dbab bindir = ${exec_prefix}/sbin etcdir = ${DESTDIR}/etc astdir = ${etcdir}/dbab +ssddir = ${etcdir}/systemd You should install into /lib/systemd/system, not

Re: Sample systemd service init file please

2014-12-14 Thread T o n g
On Mon, 15 Dec 2014 08:09:30 +0900, Norbert Preining wrote: +if HAVE_SYSTEMD Shouldn't that be ifdef HAVE_SYSTEMD Thank you Norbert Russ, with both of your helps, everything builds fine now. Thanks! -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a

Sample systemd service init file please

2014-12-13 Thread T o n g
Hi, Can you provide me a sample systemd service init file, that correspond to init.d script please? I.e., the corresponding file for systemd to replace /etc/init.d/service. My package have that /etc/init.d/service file, but I want to create one for systemd as well. I am asking because I

Re: Sample systemd service init file please

2014-12-13 Thread Riley Baird
On 14/12/14 14:50, T o n g wrote: Hi, Can you provide me a sample systemd service init file, that correspond to init.d script please? I.e., the corresponding file for systemd to replace /etc/init.d/service. My package have that /etc/init.d/service file, but I want to create one for

Re: Sample systemd service init file please

2014-12-13 Thread Russ Allbery
T o n g mlist4sunt...@yahoo.com writes: Can you provide me a sample systemd service init file, that correspond to init.d script please? I.e., the corresponding file for systemd to replace /etc/init.d/service. Take a look at the lbcd package in Debian. It has an init script, a systemd unit,