Closed keomabrun closed 5 years ago
Hmyea by the way, we should try to get rid of those ynh_systemctl
at some point ... This was an ugly hackish solution from 1.5 year ago.
This should also be done for vpnclient if not aleady the case.
Instead, the --need_lock was introduced to cover this use case : https://github.com/YunoHost/yunohost/blob/stretch-unstable/data/actionsmap/yunohost.yml#L1146
So basically :
yunohost service add
, --need_lock
should be addedyunohost service [enable|start|...]
should be used (not systemctl directly)(though for enable I guess it's not a big deal, but it is when starting/stopping/restarting the service :wink: )
https://paste.yunohost.org/raw/ovubiqenuv
The error occurs when we try to disable the service (if no device is detected).