feat: Add systemd file and data to integrate the app as a daemon
This commit is contained in:
8
data/etc/default/revpi-middleware
Normal file
8
data/etc/default/revpi-middleware
Normal file
@@ -0,0 +1,8 @@
|
||||
# Additional options that are passed to revpi-middleware.
|
||||
# add '-f /var/log/revpi-middleware.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-middleware.log"
|
||||
14
data/etc/logrotate/revpi-middleware
Normal file
14
data/etc/logrotate/revpi-middleware
Normal file
@@ -0,0 +1,14 @@
|
||||
/var/log/revpi-middleware.log
|
||||
{
|
||||
rotate 6
|
||||
weekly
|
||||
maxsize 1M
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
sharedscripts
|
||||
postrotate
|
||||
systemctl kill --signal=SIGUSR1 revpi-middleware > /dev/null 2>&1 || true
|
||||
endscript
|
||||
}
|
||||
Reference in New Issue
Block a user