Code cleanup
This commit is contained in:
1 parent
c54e2649ef
commit
e13881b07b
7 files changed
+233
-256
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# Generate systemd service file
|
||||
|
||||
FILE=/etc/systemd/system/buttond.service
|
||||
|
||||
cat > $FILE << EOF
|
||||
[Unit]
|
||||
Description = buttonctl
|
||||
|
||||
[Service]
|
||||
Type = simple
|
||||
ExecStart = /usr/bin/python3 $PWD/button.py
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=buttond.service
|
||||
EOF
|
||||
Reference in new issue
Block a user