- initial import

This commit is contained in:
2023-08-09 19:53:31 +03:00
commit b701793923
73 changed files with 5835 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
[Unit]
Description=QualTest GSM node
ConditionPathExists=ABSOLUTE_INSTALL_DIR/run_node.sh
After=network.target
[Service]
Type=simple
User=pi
Group=pi
LimitNOFILE=1024
Restart=always
RestartSec=30
# startLimitIntervalSec=60
WorkingDirectory=ABSOLUTE_INSTALL_DIR
ExecStart=/bin/bash ABSOLUTE_INSTALL_DIR/run_node.sh --check-pid-file
KillSignal=SIGQUIT
# make sure log directory exists and owned by syslog
PermissionsStartOnly=true
ExecStartPre=/usr/bin/rm -f ABSOLUTE_INSTALL_DIR/qualtest.pid
#ExecStartPre=/bin/chown syslog:adm /var/log/sleepservice
#ExecStartPre=/bin/chmod 755 /var/log/sleepservice
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=agent_gsm
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,13 @@
[Unit]
Description=Tunnel to jumpbox
Wants=network-online.target
After=network.target network-online.target
[Service]
User=pi
Restart=always
RestartSec=60
ExecStart=/bin/bash /home/pi/create_tunnel.sh
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,11 @@
[Unit]
Description=VPN to backend
Wants=network-online.target
After=network.target network-online.target
[Service]
Type=oneshot
ExecStart=/home/pi/create_vpn.sh
[Install]
WantedBy=multi-user.target