You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried to set up marmoset with CentOS 7 (systemd 219). After copying the unit file provided in the repository and executing "systemctl daemon-reload", the service is recognized:
[root@localhost ext]# systemctl status marmoset
● marmoset.service - marmoset API
Loaded: loaded (/etc/systemd/system/marmoset.service; static; vendor preset: disabled)
Active: inactive (dead)
However activating it fails:
[root@localhost ext]# systemctl enable marmoset
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
The error message clearly states that the unit file needs an [Install] section to be enabled. Unless I'm missing anything else or you plan to use it in another way as described in the message, I believe the [Install] section should be added to the file.
The text was updated successfully, but these errors were encountered:
this seems to be an issue with older systemd version, I'm unable to reproduce this on 228-4, however it is best practice to have a working [install] section so I added one in #46. Please verify if this fixed your issue.
[root@localhost ext]# systemctl enable marmoset
Created symlink from /etc/systemd/system/multi-user.target.wants/marmoset.service to /etc/systemd/system/marmoset.service.
I just tried to set up marmoset with CentOS 7 (systemd 219). After copying the unit file provided in the repository and executing "systemctl daemon-reload", the service is recognized:
[root@localhost ext]# systemctl status marmoset
● marmoset.service - marmoset API
Loaded: loaded (/etc/systemd/system/marmoset.service; static; vendor preset: disabled)
Active: inactive (dead)
However activating it fails:
[root@localhost ext]# systemctl enable marmoset
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
.wants/ or .requires/ directory.
a requirement dependency on it.
D-Bus, udev, scripted systemctl call, ...).
The error message clearly states that the unit file needs an [Install] section to be enabled. Unless I'm missing anything else or you plan to use it in another way as described in the message, I believe the [Install] section should be added to the file.
The text was updated successfully, but these errors were encountered: