systemctl config - simeonlam/knowledge GitHub Wiki

sample of alloy

create systemd service file

vi /etc/systemd/system/alloy.service
[Unit]
Description=Alloy
After=network.target

[Service]
Type=simple
ExecStart=/path/to/alloy/alloy -i /path/to/your/model.als
Restart=always
User=your_user
Group=your_group

[Install]
WantedBy=multi-user.target

reload config

systemctl daemon-reload

start

systemctl start alloy

enable on startup

systemctl enable alloy

log and status

systemctl status alloy