service files creation

This commit is contained in:
ange committed 2025-03-06 01:32:55 +01:00
1 parent 8f73ce0621
commit ec88bd442c
3 files changed
+48

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
# copy to /etc/systemd/system/mnt-coope_drive.automount
# name of the service file MUST be path-to-mount-point for /path/to/mount/point
# .mount and .automount mandatory file ext for automount services
# sudo blkid -o list >> find the dsik UUID in .mount
# sudo systemctl daemon-reload
# sudo systemctl enable mnt-coope_drive.mount mnt-coope_drive.automount
# sudo reboot
[Unit]
Description=Automount coope_drive
[Automount]
Where=/mnt/coope_drive
[Install]
WantedBy=multi-user.target
+19
View File
@@ -0,0 +1,19 @@
# copy to /etc/systemd/system/mnt-coope_drive.mount
# name of the service file MUST be path-to-mount-point for /path/to/mount/point
# .mount and .automount mandatory file ext for automount services
# sudo blkid -o list >> find the dsik UUID
# sudo systemctl daemon-reload
# sudo systemctl enable mnt-coope_drive.mount
# sudo reboot
[Unit]
Description=Mount coope-drive
[Mount]
What=/dev/disk/by-uuid/68E6-5836
Where=/mnt/coope_drive
Type=auto
Options=defaults
[Install]
WantedBy=multi-user.target
+14
View File
@@ -0,0 +1,14 @@
[Unit]
Description=Ray-Ponder Service
After=network.target multi-user.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=5
User=coope
WorkingDirectory=/home/coope/ray-ponder/
ExecStart=/home/coope/ray-ponder/.venv/bin/python /home/coope/ray-ponder/ray-ponder.py
[Install]
WantedBy=multi-user.target