Рефакторинг. Переход на typescript
This commit is contained in:
@@ -1,19 +1,16 @@
|
||||
[Unit]
|
||||
Description=Мониторинг GPIO на Raspberry Pi
|
||||
Description=GPIO Interrupt Capture Service
|
||||
Requires=monitor-gpio.socket
|
||||
After=monitor-gpio.socket
|
||||
Wants=multi-user.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/home/user/WiringPi/examples
|
||||
ExecStartPre=/bin/sleep 2
|
||||
ExecStart=/home/user/WiringPi/examples/gpio-interrupt --mode=sleep
|
||||
|
||||
ExecStart=/home/user/WiringPi/examples/gpio-interrupt -
|
||||
StandardOutput=socket
|
||||
StandardError=journal
|
||||
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -33,4 +33,4 @@ if [ -d "$LOG_DIR" ]; then
|
||||
else
|
||||
echo "❌ Директория логов не найдена: $LOG_DIR"
|
||||
echo "Запустите сервер для создания логов"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user