[systemctl] lancer znc en tant qu'utilisateur (Résolu)
Publié : jeu. 26 déc. 2019, 13:50
Bonjour à tous,
je suis actuellement en train d'essayer de lancer znc au démarage en tant qu'utilisateur.
J'ai donc créé mon service :
et voici le log de systemctl statu znc.service
hmm, je pense qu'il y a quelque chose que je n'ai vraisembablement pas bien compris... si quelqu'un pouvait m'aider ça serait super top 
je suis actuellement en train d'essayer de lancer znc au démarage en tant qu'utilisateur.
J'ai donc créé mon service :
Code : Tout sélectionner
[Unit]
Description=ZNC, an advanced IRC bouncer
After=network-online.target
[Service]
ExecStart=/usr/bin/znc -f -d /home/powabanga/.znc
User=powabanga
[Install]
WantedBy=multi-user.target
~
Code : Tout sélectionner
Warning: The unit file, source configuration file or drop-ins of znc.service changed on disk. Run 'systemctl daemon-reload' to re>
* znc.service - ZNC, an advanced IRC bouncer
Loaded: bad-setting (Reason: Unit znc.service has a bad unit file setting.)
Active: failed (Result: exit-code) since Thu 2019-12-26 13:10:04 CET; 23min ago
Main PID: 30354 (code=exited, status=1/FAILURE)
Dec 26 13:10:01 box systemd[1]: Started ZNC, an advanced IRC bouncer.
Dec 26 13:10:04 box znc[30354]: Checking for list of available modules...
Dec 26 13:10:04 box znc[30354]: Opening config [/var/lib/znc/configs/znc.conf]... [ No such file ]
Dec 26 13:10:04 box znc[30354]: Restart ZNC with the --makeconf option if you wish to create this config.
Dec 26 13:10:04 box znc[30354]: Unrecoverable config error.
Dec 26 13:10:04 box systemd[1]: znc.service: Main process exited, code=exited, status=1/FAILURE
Dec 26 13:10:04 box systemd[1]: znc.service: Failed with result 'exit-code'.
Dec 26 13:19:08 box systemd[1]: /etc/systemd/system/znc.service:7: Invalid user/group name or numeric ID:
Dec 26 13:19:08 box systemd[1]: znc.service: Unit configuration has fatal error, unit will not be started.
