Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR:systemctl: nextcloud.service: Failed to parse service type, ignoring: exec #167

Open
staeglis opened this issue Oct 12, 2023 · 1 comment

Comments

@staeglis
Copy link

Is the exec service type unsupported at this time? During our tests in our Gitlab CI we get an error with the following unit.

[Unit]
Description=Nextcloud Cloud Storage
Requires=apache2.service fail2ban.service mariadb.service php8.1-fpm.service redis-server.service
After=apache2.service fail2ban.service mariadb.service php8.1-fpm.service redis-server.service
RequiresMountsFor=/nextcloud/local/userdata

[Service]
Type=exec
User=www-data
ExecStart=/usr/bin/php -f /var/www/nextcloud/occ maintenance:mode --off
ExecStop=/usr/bin/php -f /var/www/nextcloud/occ maintenance:mode --on
@gdraheim
Copy link
Owner

I did not know about that service type but the official documentation says it is just another variant of the service type "simple" that simply waits for the "exec" to be performed. That's the default in the systemctl-replacement so that it boils down to be an alias. This can be added quite quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants