migrate services to systemctl 🚀
This commit is contained in:
@@ -20,13 +20,6 @@ case "$1" in
|
||||
echo "Starting dride-core"
|
||||
#blink LED
|
||||
sudo python /home/core/modules/indicators/python/states/standalone.py welcome
|
||||
|
||||
# start recording
|
||||
sudo nice -n -19 node /home/core/modules/video/index.js &
|
||||
|
||||
# run button / bluetooth daemon
|
||||
sudo python /home/core/daemons/bluetooth/initPin.py &
|
||||
sudo BLENO_DEVICE_NAME="dride" node /home/core/daemons/bluetooth/main.js &
|
||||
;;
|
||||
stop)
|
||||
echo "Stopping dride-core"
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Control record proccess in your Dride
|
||||
Documentation=https://dride.io/documentation
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Environment=BLENO_DEVICE_NAME=dride
|
||||
Type=simple
|
||||
User=pi
|
||||
ExecStart=/usr/bin/node /home/core/daemons/bluetooth/main.js
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Control record proccess in your Dride
|
||||
Documentation=https://dride.io/documentation
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Environment=NODE_PORT=3001
|
||||
Type=simple
|
||||
User=pi
|
||||
ExecStart=/usr/bin/node /home/core/modules/video/index.js
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Control record proccess in your Dride
|
||||
Documentation=https://dride.io/documentation
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=pi
|
||||
ExecStart=/usr/bin/node /home/core/dride-ws/server/app.js
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user