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
Both asd and asfdsafdsad are not valid services, so they shouldn't be returning inactive. Therefore it's not possible to check whether a service is installed or not -- ie. it's not possible to get ErrNotInstalled.
I'm not sure if there's a workaround at this time but I'll investigate. Potentially we might have to fallback to checking whether such file exists in /etc/systemd/system if the response from systemd is inactive?
The text was updated successfully, but these errors were encountered:
I noticed that in https://github.com/kardianos/service/blob/master/service_systemd_linux.go#L218 when checking for
Status()
of a service that's not installed, it returnsinactive
instead.I'm running this on Ubuntu server and here is example output:
Both
asd
andasfdsafdsad
are not valid services, so they shouldn't be returninginactive
. Therefore it's not possible to check whether a service is installed or not -- ie. it's not possible to getErrNotInstalled
.I'm not sure if there's a workaround at this time but I'll investigate. Potentially we might have to fallback to checking whether such file exists in
/etc/systemd/system
if the response fromsystemd
isinactive
?The text was updated successfully, but these errors were encountered: