[Unit] Description=Petal writing editor (millenia) # Petal ran unsupervised for a long time -- a bare ./petal with PPID 1, no unit # and no screen session -- so a crash or a reboot left it silently down until # somebody noticed. It also wants vLLM up first, though it degrades warmly if # the model is unreachable, so this is Wants and not Requires. After=network-online.target vllm-chat.service Wants=network-online.target vllm-chat.service [Service] Type=simple User=reala WorkingDirectory=/home/reala/petal # start.sh carries the environment (ports, LLM endpoint, Piper endpoints and # TTS_PATH) and execs the binary, so the service supervises Petal itself rather # than a shell wrapper. ExecStart=/home/reala/petal/start.sh Restart=on-failure RestartSec=5 StandardOutput=append:/home/reala/petal/petal.log StandardError=append:/home/reala/petal/petal.log [Install] WantedBy=multi-user.target