feat: HELIOS Remote v5.0.0 Final Release & Systemd Auto-Start Daemon
This commit is contained in:
17
service/helios-remote.service
Normal file
17
service/helios-remote.service
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=HELIOS Remote Control & Monitoring System Daemon
|
||||
After=network.target network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User=jkwoo
|
||||
WorkingDirectory=/home/jkwoo/workspace/helios_remote
|
||||
ExecStart=/home/jkwoo/workspace/helios_remote/start_system.sh
|
||||
ExecStop=/home/jkwoo/workspace/helios_remote/stop_system.sh
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
KillMode=process
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
29
service/install_service.sh
Executable file
29
service/install_service.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "=== Installing HELIOS Remote systemd Service ==="
|
||||
|
||||
SERVICE_SRC="/home/jkwoo/workspace/helios_remote/service/helios-remote.service"
|
||||
SERVICE_DEST="/etc/systemd/system/helios-remote.service"
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "This script requires root privileges to install systemd service."
|
||||
echo "Running with sudo..."
|
||||
sudo cp "$SERVICE_SRC" "$SERVICE_DEST"
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable helios-remote.service
|
||||
sudo systemctl restart helios-remote.service
|
||||
echo "=========================================================="
|
||||
echo "✅ HELIOS Remote systemd service installed and enabled!"
|
||||
echo "👉 Check status with: sudo systemctl status helios-remote.service"
|
||||
echo "=========================================================="
|
||||
else
|
||||
cp "$SERVICE_SRC" "$SERVICE_DEST"
|
||||
systemctl daemon-reload
|
||||
systemctl enable helios-remote.service
|
||||
systemctl restart helios-remote.service
|
||||
echo "=========================================================="
|
||||
echo "✅ HELIOS Remote systemd service installed and enabled!"
|
||||
echo "👉 Check status with: systemctl status helios-remote.service"
|
||||
echo "=========================================================="
|
||||
fi
|
||||
21
service/uninstall_service.sh
Executable file
21
service/uninstall_service.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "=== Uninstalling HELIOS Remote systemd Service ==="
|
||||
|
||||
SERVICE_DEST="/etc/systemd/system/helios-remote.service"
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "Running with sudo..."
|
||||
sudo systemctl stop helios-remote.service 2>/dev/null || true
|
||||
sudo systemctl disable helios-remote.service 2>/dev/null || true
|
||||
sudo rm -f "$SERVICE_DEST"
|
||||
sudo systemctl daemon-reload
|
||||
else
|
||||
systemctl stop helios-remote.service 2>/dev/null || true
|
||||
systemctl disable helios-remote.service 2>/dev/null || true
|
||||
rm -f "$SERVICE_DEST"
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
|
||||
echo "HELIOS Remote systemd service uninstalled successfully."
|
||||
Reference in New Issue
Block a user