Removed logrotate and upstart/systemd files

This commit is contained in:
Evan Richardson
2018-09-04 00:03:38 -07:00
parent eaa4da6285
commit 8a8dd3b7e3
6 changed files with 0 additions and 70 deletions

View File

@@ -1,11 +0,0 @@
/var/log/tHome/*.log {
weekly
size 5M
missingok
rotate 8
compress
delaycompress
create 644 ted ted
}

View File

@@ -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

View File

@@ -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

View File

@@ -1,2 +0,0 @@
# Environment variables needed by systemd to use the services.
PYTHONPATH=/home/ted/python

View File

@@ -1,6 +0,0 @@
Upstart notes:
For problems, see /var/log/upstart/SERVICE.log
sudo cat /var/log/upstart/tHome-msgHub.log

View File

@@ -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