Removed logrotate and upstart/systemd files
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
|
||||
/var/log/tHome/*.log {
|
||||
weekly
|
||||
size 5M
|
||||
missingok
|
||||
rotate 8
|
||||
compress
|
||||
delaycompress
|
||||
create 644 ted ted
|
||||
}
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
Systemd notes:
|
||||
|
||||
Install in:
|
||||
/etc/systemd/system
|
||||
|
||||
probably use sym links there.
|
||||
|
||||
Then run:
|
||||
systemctl start [name]
|
||||
|
||||
If there are errors, run:
|
||||
|
||||
systemctl status [name]
|
||||
|
||||
After editing a service file, run:
|
||||
|
||||
systemctl daemon-reload [name]
|
||||
|
||||
|
||||
To enable auto-start at boot time:
|
||||
|
||||
systemctl enable [name].service
|
||||
@@ -1,13 +0,0 @@
|
||||
[Unit]
|
||||
Description=T-Home electric meter reader process
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/home/ted/proj/tHome/systemd/tHome.env
|
||||
Type=simple
|
||||
User=ted
|
||||
ExecStart=/home/ted/proj/tHome/bin/tHome-eagle.py --log /var/log/tHome/eagle.log --configDir /home/ted/proj/tHome/conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# Environment variables needed by systemd to use the services.
|
||||
PYTHONPATH=/home/ted/python
|
||||
@@ -1,6 +0,0 @@
|
||||
Upstart notes:
|
||||
|
||||
For problems, see /var/log/upstart/SERVICE.log
|
||||
|
||||
sudo cat /var/log/upstart/tHome-msgHub.log
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
description "T-Home electric meter reader process"
|
||||
author "Ted Drain"
|
||||
|
||||
start on filesystem or runlevel [2345]
|
||||
stop on shutdown
|
||||
|
||||
env USER=ted
|
||||
env CMD=/home/ted/proj/tHome/bin/tHome-eagle.py
|
||||
env LOG=/var/log/tHome/eagle.log
|
||||
env CONFIG=/home/ted/proj/tHome/conf
|
||||
|
||||
script
|
||||
exec start-stop-daemon --start -c $USER --exec $CMD -- -l $LOG -c $CONFIG
|
||||
end script
|
||||
|
||||
|
||||
Reference in New Issue
Block a user