magynhard/rails_service_tasks

check if service is running or installed when uninstalling

Opened this issue · 0 comments

want proper messages when trying to uninstall not installed service

 - disable service 'my.service' ... Failed to execute operation: No such file or directory
done
 - delete service file '/lib/systemd/system/my.service' ... rake aborted!
Errno::ENOENT: No such file or directory @ unlink_internal - /lib/systemd/system/my.service