diff --git a/hw_conf/mnt-coope_drive.automount b/hw_conf/mnt-coope_drive.automount new file mode 100644 index 0000000..812a5d8 --- /dev/null +++ b/hw_conf/mnt-coope_drive.automount @@ -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 diff --git a/hw_conf/mnt-coope_drive.mount b/hw_conf/mnt-coope_drive.mount new file mode 100644 index 0000000..893bca5 --- /dev/null +++ b/hw_conf/mnt-coope_drive.mount @@ -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 diff --git a/hw_conf/ray-ponder.service b/hw_conf/ray-ponder.service new file mode 100644 index 0000000..71ddee0 --- /dev/null +++ b/hw_conf/ray-ponder.service @@ -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