Skip to content

Commit f30d69e

Browse files
committed
Fix platform_service() on AIX in RPM packages
The 'cfengine3' init script is under /etc/rc.d/init.d on AIX. We already have functions for these tweaks, let's just use them more. Ticket: ENT-4305 Changelog: Fix running cfengine3 init script in AIX RPMs
1 parent 4c05517 commit f30d69e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/common/script-templates/rpm-script-common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ platform_service()
3030
if [ -x /bin/systemctl ]; then
3131
/bin/systemctl "$2" "$1".service
3232
else
33-
/etc/init.d/"$1" "$2"
33+
`rc_d_path`/init.d/"$1" "$2"
3434
fi
3535
}
3636

0 commit comments

Comments
 (0)