Moved Docker stuff to "Docker" folder

Created k8s folder for k8s stuff
Added early-stage service.yaml for K8s deployment
This commit is contained in:
erichardso
2018-08-28 11:51:23 -07:00
parent 176e2f2062
commit d880f44ca6
138 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
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

@@ -0,0 +1,14 @@
[Unit]
Description=Acu-rite weather bridge reader
After=network.target
[Service]
EnvironmentFile=/home/ted/proj/tHome/systemd/tHome.env
Type=simple
User=ted
ExecStart=/home/ted/proj/tHome/bin/tHome-acurite.py --log /var/log/tHome/acurite.log --configDir /home/ted/proj/tHome/conf
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,13 @@
[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

@@ -0,0 +1,12 @@
[Unit]
Description=T-Home SMA solar inverter reader
After=network.target
[Service]
EnvironmentFile=/home/ted/proj/tHome/systemd/tHome.env
Type=simple
User=ted
ExecStart=/home/ted/proj/tHome/bin/tHome-sma.py --log /var/log/tHome/sma.log --configDir /home/ted/proj/tHome/conf
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,15 @@
[Unit]
Description=T-Home WIFI thermostat reader
After=network.target
[Service]
EnvironmentFile=/home/ted/proj/tHome/systemd/tHome.env
Type=simple
User=ted
ExecStart=/home/ted/proj/tHome/bin/tHome-thermostat.py --log /var/log/tHome/thermostat.log --configDir /home/ted/proj/tHome/conf
[Install]
WantedBy=multi-user.target

View File

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