Browse Source

Added systemd units

Óscar García Amor 4 years ago
parent
commit
2d7005e049
2 changed files with 24 additions and 0 deletions
  1. 12 0
      systemd/sysdweb-system.service
  2. 12 0
      systemd/sysdweb-user.service

+ 12 - 0
systemd/sysdweb-system.service

@@ -0,0 +1,12 @@
+[Unit]
+Description=Control systemd services through Web or REST API
+Documentation=https://github.com/ogarcia/sysdweb
+After=network.target
+Requires=dbus.socket
+
+[Service]
+ExecStart=/usr/bin/sysdweb
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target

+ 12 - 0
systemd/sysdweb-user.service

@@ -0,0 +1,12 @@
+[Unit]
+Description=Control systemd services through Web or REST API
+Documentation=https://github.com/ogarcia/sysdweb
+After=network.target
+Requires=dbus.socket
+
+[Service]
+ExecStart=/usr/bin/sysdweb
+Restart=on-failure
+
+[Install]
+WantedBy=default.target