Skip to content

Commit 9198353

Browse files
feat: add service file (#4)
1 parent 3291184 commit 9198353

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.config.json
2+
.logs/
23
__pycache__/
34
.pytest_cache/
45
.tox/

services/hss.service

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[Unit]
2+
Description=Home Security System
3+
After=network.target
4+
5+
[Service]
6+
ExecStart=/home/raspberry/home-security-system/.hss_venv/bin/python /home/raspberry/home-security-system/main.py
7+
Restart=always
8+
User=raspberry
9+
WorkingDirectory=/home/raspberry/home-security-system/
10+
ExecStartPre=/bin/sleep 30
11+
RestartSec=30
12+
13+
[Install]
14+
WantedBy=default.target

0 commit comments

Comments
 (0)