add simple install script and systemd service
This commit is contained in:
12
systemd/bash-logging.service
Normal file
12
systemd/bash-logging.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=BASH based InfluxDB logging script
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/env bash main.sh
|
||||
WorkingDirectory=/opt/bash-logging/
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user