Hi Tommi! I have see there is InitV-scripts in the tntnet master branch. So I added now the systend patch (http://sourceforge.net/p/tntnet/patches/1/) in my fork (https://github.com/OlafRadicke/tntnet)
If that okay tommi, than you can pull this Please. Here a my changes: diff --git a/etc/Makefile.am b/etc/Makefile.am index f8d5659..fa317a7 100644 --- a/etc/Makefile.am +++ b/etc/Makefile.am @@ -1,10 +1,12 @@ nobase_dist_noinst_DATA = \ tntnet/tntnet.xml.in \ - init.d/tntnet.in + init.d/tntnet.in \ + system/tntnet.service nobase_sysconf_DATA = \ tntnet/tntnet.xml \ - init.d/tntnet + init.d/tntnet \ + system/tntnet.service tntnet/tntnet.xml: tntnet/tntnet.xml.in sed -e 's,@libdir\@,@libdir@,g;' \ @@ -19,3 +21,11 @@ init.d/tntnet: init.d/tntnet.in -e 's,@sysconfdir\@,@sysconfdir@,g;' \ -e 's,@localstatedir\@,@localstatedir@,g;' \ -e 's,@datadir\@,@datadir@,g;' <init.d/tntnet.in >init.d/tntnet + + +init.d/tntnet: system/tntnet.service.in + sed -e 's,@libdir\@,@libdir@,g;' \ + -e 's,@pkglibdir\@,@pkglibdir@,g;' \ + -e 's,@sysconfdir\@,@sysconfdir@,g;' \ + -e 's,@localstatedir\@,@localstatedir@,g;' \ + -e 's,@datadir\@,@datadir@,g;' <system/tntnet.service.in >system/tntnet.service diff --git a/systemd/system/tntnet.service b/systemd/system/tntnet.service new file mode 100644 index 0000000..89becd7 --- /dev/null +++ b/systemd/system/tntnet.service @@ -0,0 +1,15 @@ +[Unit] +Description=tntnet web application server + +[Service] +Type=forking +EnvironmentFile=/etc/tntnet/tntnet.conf +EnvironmentFile=/etc/tntnet/tntnet.properties +PIDFile=/var/run/tntnet.pid +ExecStart=/usr/bin/tntnet +ExecStop=/bin/kill -15 $MAINPID +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target + -------------------|-------------------|-------------------|-------------------| ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
