added service scripts
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
"Boot": {
|
"Boot": {
|
||||||
"intensity": 0.03
|
"intensity": 0.03
|
||||||
},
|
},
|
||||||
"disabledAnimation": {
|
"Animation": {
|
||||||
"intensity": 0.05,
|
"intensity": 0.05,
|
||||||
"debug": false,
|
"debug": false,
|
||||||
"icons": [
|
"icons": [
|
||||||
@@ -38,17 +38,17 @@
|
|||||||
"icons/tv-movie.bin"
|
"icons/tv-movie.bin"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"disabledClock": {
|
"Clock": {
|
||||||
"intensity": 0.05,
|
"intensity": 0.05,
|
||||||
"debug": true
|
"debug": true
|
||||||
},
|
},
|
||||||
"Demo": {
|
"Demo": {
|
||||||
"intensity": 0.05
|
"intensity": 0.05
|
||||||
},
|
},
|
||||||
"disabledFire": {
|
"Fire": {
|
||||||
"intensity": 0.05
|
"intensity": 0.05
|
||||||
},
|
},
|
||||||
"disabledWeather": {
|
"Weather": {
|
||||||
"intensity": 0.05,
|
"intensity": 0.05,
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"lat": 59.3293,
|
"lat": 59.3293,
|
||||||
|
|||||||
6
scripts/install_service.sh
Executable file
6
scripts/install_service.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
sudo cp lamatrix.service /lib/systemd/system
|
||||||
|
sudo chmod 644 /lib/systemd/system/lamatrix.service
|
||||||
|
chmod +x /home/pi/hello_world.py
|
||||||
|
sudo systemctl daemon-reload
|
||||||
|
sudo systemctl enable lamatrix.service
|
||||||
|
sudo systemctl start lamatrix.service
|
||||||
12
scripts/lamatrix.service
Normal file
12
scripts/lamatrix.service
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=lamatrix
|
||||||
|
After=multi-user.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/bin/python /home/pi/lamatrix/main.py
|
||||||
|
WorkingDirectory=/home/pi/lamatrix
|
||||||
|
Restart=on-abort
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user