Skip to content

Commit 7e1c694

Browse files
rpm: Fix installation path of SysV startup script
Do not use /etc/init.d for SysV init scripts for RPM-based linux distros. The directory should be /etc/rc.d/init.d. When using /etc/init.d and no chkconfig or initscripts packages are installed first, this package was creating /etc/init.d as a directory. Unfortunately, if you wanted to later install a package that brought in the chkconfig package, the RPM transaction would fail because it assumes it can create a symlink in /etc/init.d when a directory already exists. A bug was filed for this here: osquery/osquery#7949
1 parent 4caa2c5 commit 7e1c694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/linux/rpm.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
3232

3333
install(
3434
FILES "${OSQUERY_DATA_PATH}/control/rpm/etc/init.d/osqueryd"
35-
DESTINATION "/etc/init.d"
35+
DESTINATION "/etc/rc.d/init.d"
3636
COMPONENT osquery
3737

3838
PERMISSIONS

0 commit comments

Comments
 (0)