From c7e823c5f5036d187aa1b1db2676d3c712b2321e Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 13 May 2025 17:06:24 +0000 Subject: Add systemd support to commissioning --- usr/lib/systemd/system/commission-php-fpm.service | 22 ++++++++++++++++++++++ usr/lib/systemd/system/commission.service | 23 +++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 usr/lib/systemd/system/commission-php-fpm.service create mode 100644 usr/lib/systemd/system/commission.service (limited to 'usr/lib/systemd') 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 -- cgit v1.2.3