diff --git a/data/etc/default/revpi-ios b/data/etc/default/revpi-ios new file mode 100644 index 0000000..b057956 --- /dev/null +++ b/data/etc/default/revpi-ios @@ -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" diff --git a/data/etc/logrotate/revpi-ios b/data/etc/logrotate/revpi-ios new file mode 100644 index 0000000..1f1a213 --- /dev/null +++ b/data/etc/logrotate/revpi-ios @@ -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 +} diff --git a/data/systemd/before_253/revpi-ios.service b/data/systemd/before_253/revpi-ios.service new file mode 100644 index 0000000..b6a7c12 --- /dev/null +++ b/data/systemd/before_253/revpi-ios.service @@ -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 diff --git a/data/systemd/from_253/revpi-ios.service b/data/systemd/from_253/revpi-ios.service new file mode 100644 index 0000000..b9ac309 --- /dev/null +++ b/data/systemd/from_253/revpi-ios.service @@ -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