diff --git a/etc/logrotate.d/aquarium b/etc/logrotate.d/aquarium new file mode 100644 index 00000000..0f08fb8f --- /dev/null +++ b/etc/logrotate.d/aquarium @@ -0,0 +1,9 @@ +/var/log/aquarium*.log { + daily + missingok + rotate 14 + compress + delaycompress + notifempty + create 0640 root root +} diff --git a/etc/logrotate.d/lookyloo b/etc/logrotate.d/lookyloo new file mode 100644 index 00000000..da2959eb --- /dev/null +++ b/etc/logrotate.d/lookyloo @@ -0,0 +1,9 @@ +/var/log/lookyloo*.log { + daily + missingok + rotate 14 + compress + delaycompress + notifempty + create 0640 root root +} diff --git a/etc/systemd/system/aquarium.service.sample b/etc/systemd/system/aquarium.service.sample index 7d203c98..2aa9b2df 100644 --- a/etc/systemd/system/aquarium.service.sample +++ b/etc/systemd/system/aquarium.service.sample @@ -11,6 +11,8 @@ RemainAfterExit=true WorkingDirectory= ExecStart=/usr/bin/docker-compose up -d --remove-orphans ExecStop=/usr/bin/docker-compose down +StandardOutput=append:/var/log/aquarium_message.log +StandardError=append:/var/log/aquarium_error.log [Install] WantedBy=multi-user.target