kolejne zmiany, dużo, zebrało się

This commit is contained in:
2024-11-23 09:47:23 +01:00
parent 192276ff80
commit e167001547
42 changed files with 910 additions and 313 deletions

View File

@ -0,0 +1,11 @@
[Unit]
Description=CRC daemon
Requires=crc-http.socket
Requires=crc-vsock.socket
[Service]
# This allows systemd to know when startup is not complete (for example, because of a preflight failure)
# daemon.SdNotify(false, daemon.SdNotifyReady) must be called before the startup is successful
Type=notify
ExecStart=/home/paramah/.crc/bin/crc daemon

View File

@ -0,0 +1,9 @@
[Unit]
Description=CRC HTTP socket
[Socket]
ListenStream=%h/.crc/crc-http.sock
Service=crc-daemon.service
[Install]
WantedBy=default.target

View File

@ -0,0 +1,9 @@
[Unit]
Description=CRC vsock socket
[Socket]
ListenStream=vsock::1024
Service=crc-daemon.service
[Install]
WantedBy=default.target

View File

@ -0,0 +1 @@
/home/paramah/.config/systemd/user/crc-http.socket

View File

@ -0,0 +1 @@
/home/paramah/.config/systemd/user/crc-vsock.socket

View File

@ -0,0 +1 @@
/home/paramah/.config/systemd/user/gitwatch@.service

View File

@ -0,0 +1,10 @@
[Unit]
Description=Watch file or directory and git commit all changes. run with: systemctl --user --now enable gitwatch@$(systemd-escape -- "'-r url/to/repository' /path/to/folder").service
[Service]
Environment="SCRIPT_ARGS=%I"
ExecStart=/usr/bin/bash -c "/home/paramah/bin/gitwatch ${SCRIPT_ARGS}"
ExecStop=/bin/true
[Install]
WantedBy=default.target