summaryrefslogtreecommitdiff
path: root/usr/lib/systemd
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2025-05-13 17:06:24 +0000
committerJohn Klug <john.klug@multitech.com>2025-05-13 17:06:24 +0000
commitc7e823c5f5036d187aa1b1db2676d3c712b2321e (patch)
treea3b2a6e08575b760c9b3baef52eeac678ad469c9 /usr/lib/systemd
parentd33e698296fd633d2f2d2cb6cbc45b5543fca468 (diff)
downloadcommissioning-c7e823c5f5036d187aa1b1db2676d3c712b2321e.tar.gz
commissioning-c7e823c5f5036d187aa1b1db2676d3c712b2321e.tar.bz2
commissioning-c7e823c5f5036d187aa1b1db2676d3c712b2321e.zip
Add systemd support to commissioning
Diffstat (limited to 'usr/lib/systemd')
-rw-r--r--usr/lib/systemd/system/commission-php-fpm.service22
-rw-r--r--usr/lib/systemd/system/commission.service23
2 files changed, 45 insertions, 0 deletions
diff --git a/usr/lib/systemd/system/commission-php-fpm.service b/usr/lib/systemd/system/commission-php-fpm.service
new file mode 100644
index 0000000..3651747
--- /dev/null
+++ b/usr/lib/systemd/system/commission-php-fpm.service
@@ -0,0 +1,22 @@
+# Copy file /opt/lora/lora-network-server.conf.sample to
+# to /var/config/lora/lora-network-server.conf
+# Then:
+# systemctl enable lora-network-server.service
+# systemctl start lora-network-server.service
+# Log view:
+# systemctl status lora-network-server.service
+# Last 30 lines of output:
+# journalctl -n30 -xu lora-network-server.service
+# If default settings are wrong, edit /var/config/lora/lora-network-server
+#
+[Unit]
+Description=mLinux Commissioning PHP Component
+After=network-online.target commission.service
+
+[Service]
+SyslogIdentifier=PHP-Commissioning
+ExecStart=/usr/libexec/commission/commission-php-fpm
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/usr/lib/systemd/system/commission.service b/usr/lib/systemd/system/commission.service
new file mode 100644
index 0000000..5ea3dbc
--- /dev/null
+++ b/usr/lib/systemd/system/commission.service
@@ -0,0 +1,23 @@
+# Copy file /opt/lora/lora-network-server.conf.sample to
+# to /var/config/lora/lora-network-server.conf
+# Then:
+# systemctl enable lora-network-server.service
+# systemctl start lora-network-server.service
+# Log view:
+# systemctl status lora-network-server.service
+# Last 30 lines of output:
+# journalctl -n30 -xu lora-network-server.service
+# If default settings are wrong, edit /var/config/lora/lora-network-server
+#
+[Unit]
+Description=mLinux Commissioning
+After=network-online.target
+
+[Service]
+SyslogIdentifier=Commissioning
+WorkingDirectory=/
+ExecStart=/usr/libexec/commission/commission
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target