diff --git a/pom.xml b/pom.xml index 68c0caa..b3abfcd 100644 --- a/pom.xml +++ b/pom.xml @@ -112,7 +112,7 @@ if [ "$1" -eq 0 ]; then # Uninstall rather than upgrade # Do not stop the service as the uninstall may happen from within the service... if [ -x /bin/systemctl ]; then - /bin/systemctl --no-reload disable sshd.service > /dev/null 2>&1 || : + /bin/systemctl --no-reload disable ${project.artifactId}.service > /dev/null 2>&1 || : else /sbin/chkconfig --del ${project.artifactId} fi