Systemd Unit Generator
Generateur de fichiers unit systemd (.service, .timer, .socket).
Configuration du Service
Fichier genere
Installation
Types de services
| Type | Description | Usage |
|---|---|---|
| simple | Demarre immediatement | Applications foreground |
| exec | Comme simple, attend exec() | Plus precis que simple |
| forking | Daemon qui fork | Services traditionnels |
| oneshot | Execute et termine | Scripts, init tasks |
| notify | Notifie systemd via sd_notify | Apps systemd-aware |
Commandes systemd
# Recharger la configuration
sudo systemctl daemon-reload
# Gestion du service
sudo systemctl start myapp
sudo systemctl stop myapp
sudo systemctl restart myapp
sudo systemctl status myapp
# Activation au boot
sudo systemctl enable myapp
sudo systemctl disable myapp
# Logs
journalctl -u myapp -f
journalctl -u myapp --since "1 hour ago"