Browse Source

Provide systemd service definition

Christoph Biedl 11 years ago
parent
commit
3bb6f70288
2 changed files with 13 additions and 0 deletions
  1. 2 0
      debian/pptpd.install
  2. 11 0
      debian/pptpd.service

+ 2 - 0
debian/pptpd.install

@@ -9,3 +9,5 @@ usr/share/man/man5/pptpd.conf.5
 debian/pptpd-options            etc/ppp/
 
 usr/lib/pptpd/pptpd-logwtmp.so
+
+debian/pptpd.service            lib/systemd/system/

+ 11 - 0
debian/pptpd.service

@@ -0,0 +1,11 @@
+[Unit]
+Description=PoPToP Point to Point Tunneling Server
+After=network.target
+
+[Service]
+EnvironmentFile=-/etc/default/pptpd
+# don't daemonize to simplify stuff
+ExecStart=/usr/sbin/pptpd --fg $DAEMON_OPTS
+
+[Install]
+WantedBy=multi-user.target