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:
22
Docker/src/systemd/README.txt
Normal file
22
Docker/src/systemd/README.txt
Normal 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
|
||||
14
Docker/src/systemd/tHome-acurite.service
Normal file
14
Docker/src/systemd/tHome-acurite.service
Normal 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
|
||||
|
||||
|
||||
13
Docker/src/systemd/tHome-eagle.service
Normal file
13
Docker/src/systemd/tHome-eagle.service
Normal 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
|
||||
|
||||
12
Docker/src/systemd/tHome-sma.service
Normal file
12
Docker/src/systemd/tHome-sma.service
Normal 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
|
||||
15
Docker/src/systemd/tHome-thermostat.service
Normal file
15
Docker/src/systemd/tHome-thermostat.service
Normal 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
|
||||
|
||||
|
||||
|
||||
2
Docker/src/systemd/tHome.env
Normal file
2
Docker/src/systemd/tHome.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# Environment variables needed by systemd to use the services.
|
||||
PYTHONPATH=/home/ted/python
|
||||
Reference in New Issue
Block a user