mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
also handle 'reload_or_restart' and 'restart'
This commit is contained in:
parent
266408e235
commit
95250230bc
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ ynh_systemd_action() {
|
|||
fi
|
||||
|
||||
# do not start a service disabled by the user
|
||||
if [ "$action" == "start" ] && ! yunohost service status $service_name | grep -q "start_on_boot: disabled"; then
|
||||
if [ "$action" == "start" ] || [ "$action" == "reload_or_restart" ] || [ "$action" == "restart" ] && \
|
||||
! yunohost service status $service_name | grep -q "start_on_boot: disabled"; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue