feat(systemd): Add revpi-iosbus.service files
Signed-off-by: Sven Sager <s.sager@kunbus.com>
This commit is contained in:
8
data/etc/default/revpi-ios
Normal file
8
data/etc/default/revpi-ios
Normal file
@@ -0,0 +1,8 @@
|
||||
# Additional options that are passed to revpi-ios.
|
||||
# add '-f /var/log/revpi-ios.log' to write logs to own log file
|
||||
# add '-v' or '-vv' for verbose logging
|
||||
|
||||
DAEMON_OPTS=""
|
||||
|
||||
# In addition to journalctl, use your own additional log file
|
||||
# DAEMON_OPTS="-f /var/log/revpi-ios.log"
|
||||
14
data/etc/logrotate/revpi-ios
Normal file
14
data/etc/logrotate/revpi-ios
Normal file
@@ -0,0 +1,14 @@
|
||||
/var/log/revpi-ios.log
|
||||
{
|
||||
rotate 6
|
||||
weekly
|
||||
maxsize 1M
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
sharedscripts
|
||||
postrotate
|
||||
systemctl kill --signal=SIGUSR1 revpi-ios > /dev/null 2>&1 || true
|
||||
endscript
|
||||
}
|
||||
12
data/systemd/before_253/revpi-ios.service
Normal file
12
data/systemd/before_253/revpi-ios.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=D-Bus interface for Inputs/Outputs of Revolution Pi
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/default/revpi-ios
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
ExecStart=/usr/sbin/revpi-middleware ios $DAEMON_OPTS
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
11
data/systemd/from_253/revpi-ios.service
Normal file
11
data/systemd/from_253/revpi-ios.service
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=D-Bus interface for Inputs/Outputs of Revolution Pi
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/default/revpi-ios
|
||||
Type=notify-reload
|
||||
NotifyAccess=all
|
||||
ExecStart=/usr/sbin/revpi-middleware ios $DAEMON_OPTS
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user