Closed TomMuc1 closed 7 years ago
It's because $globalDebug in require/settings.php is enabled. In latest systemd init I always redirect output to /dev/null, so no more logs.
ok - but why is debug enabled by default? and weren't it a good idea to set to disabled - this way a simple git pull would solve the problem for most users instead of tinkering again in system service. this bug could really lead to wear-out their sd-cards ...
the fix you did won't work you have to add 'StandardOutput=null' https://github.com/Ysurac/FlightAirMap/blob/master/install/init/flightairmap.service.systemd
[Unit]
Description=FlightAirMap
Requires=mysql.service
After=mysql.service
[Service]
ExecStart=/bin/bash -c '/var/www/flightairmap/scripts/daemon-spotter.php 2>&1'
Restart=always
RestartSec=10
StandardOutput=null
[Install]
WantedBy=multi-user.target
made a short howto for the guys on flightaware forum: https://discussions.flightaware.com/t/flightairmap-watching-your-live-data-next-level/26536/47?u=tommuc
cheers tom
systemd init fixed. Debug is enabled by default because FlightAirMap is not in a stable version yet. Even if I change default setting, this wouldn't change anything for already installed version: I don't change a setting already set.
today by accident looked into log directory of my pi and found that now after about 4 weeks running flightairmap i have more than 3 gigabyte of logfiles /var/log/daemon.log and /var/log/syslog e.g.
i'd say in system service there has to be added that stdout does not write to log ... https://github.com/Ysurac/FlightAirMap/blob/master/install/init/flightairmap.service.systemd