Browse Source

systemd support for ogp_agent

own3mall 9 years ago
parent
commit
caf62c9189
1 changed files with 16 additions and 0 deletions
  1. 16 0
      systemd/ogp_agent.service

+ 16 - 0
systemd/ogp_agent.service

@@ -0,0 +1,16 @@
+# ogp_agent systemd Service Script
+# By Open Game Panel
+# OGP <[email protected]>
+[Unit]
+Description=Open Game Panel (OGP) Daemon www.opengamepanel.org
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/bin/sh -c "{OGP_AGENT_PATH}/ogp_agent_init start"
+ExecStop=/bin/sh -c "{OGP_AGENT_PATH}/ogp_agent_init stop"
+RemainAfterExit=yes
+PIDFile="{OGP_AGENT_PATH}/ogp_agent_run.pid"
+
+[Install]
+WantedBy=multi-user.target