diff --git a/systemd/comfyui-sync.service b/systemd/comfyui-sync.service new file mode 100644 index 0000000..4446175 --- /dev/null +++ b/systemd/comfyui-sync.service @@ -0,0 +1,8 @@ +[Unit] +Description=Sync new ComfyUI outputs to Samba share, organize, and rename + +[Service] +Type=oneshot +ExecStart=%h/git/schmeeve-toolz/comfyui-sync +StandardOutput=append:%h/.local/state/comfyui-sync.log +StandardError=append:%h/.local/state/comfyui-sync.log diff --git a/systemd/comfyui-sync.timer b/systemd/comfyui-sync.timer new file mode 100644 index 0000000..a63c172 --- /dev/null +++ b/systemd/comfyui-sync.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run comfyui-sync every 30 minutes + +[Timer] +OnCalendar=*:0/30 +Persistent=true + +[Install] +WantedBy=timers.target