Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes in check for systemd #269

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion debs/SPECS/3.10.0/wazuh-agent/debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ case "$1" in
rm -rf ${WAZUH_TMP_DIR}
fi

if [ -d /run/systemd/system ] ; then
if [ -d /run/systemd/system ]; then
systemctl disable wazuh-agent > /dev/null 2>&1
systemctl daemon-reload
systemctl reset-failed
Expand Down
2 changes: 0 additions & 2 deletions debs/SPECS/3.10.0/wazuh-manager/debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ case "$1" in
rm -rf ${WAZUH_TMP_DIR}
fi



if [ -d /run/systemd/system ] ; then
systemctl disable wazuh-manager > /dev/null 2>&1
systemctl daemon-reload
Expand Down
3 changes: 2 additions & 1 deletion debs/SPECS/3.11.0/wazuh-agent/debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ case "$1" in
rm -rf ${WAZUH_TMP_DIR}
fi

if [ -d /run/systemd/system ] ; then

if [ -d /run/systemd/system ]; then
systemctl disable wazuh-agent > /dev/null 2>&1
systemctl daemon-reload
systemctl reset-failed
Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.11.0/wazuh-manager/debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ case "$1" in



if [ -d /run/systemd/system ] ; then
if [ -d /run/systemd/system ]; then
systemctl disable wazuh-manager > /dev/null 2>&1
systemctl daemon-reload
systemctl reset-failed
Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.11.3/wazuh-agent/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ case "$1" in

# Service
if [ -f /etc/init.d/wazuh-agent ]; then
if [ -d /run/systemd/system ]; then
if [ ! -z "$(file /sbin/init |grep 'systemd')" ]; then
systemctl enable wazuh-agent > /dev/null 2>&1
fi
update-rc.d wazuh-agent defaults > /dev/null 2>&1
Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.11.3/wazuh-agent/debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ case "$1" in
rm -rf ${WAZUH_TMP_DIR}
fi

if [ -d /run/systemd/system ] ; then
if [ ! -z "$(file /sbin/init |grep 'systemd')" ]; then
systemctl disable wazuh-agent > /dev/null 2>&1
systemctl daemon-reload
systemctl reset-failed
Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.11.3/wazuh-manager/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ case "$1" in

# Service
if [ -x /etc/init.d/wazuh-manager ]; then
if [ -d /run/systemd/system ]; then
if [ ! -z "$(file /sbin/init |grep 'systemd')" ]; then
systemctl daemon-reload
systemctl enable wazuh-manager > /dev/null 2>&1
fi
Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.11.3/wazuh-manager/debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ case "$1" in



if [ -d /run/systemd/system ] ; then
if [ ! -z "$(file /sbin/init |grep 'systemd')" ]; then
systemctl disable wazuh-manager > /dev/null 2>&1
systemctl daemon-reload
systemctl reset-failed
Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.12.0/wazuh-agent/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ case "$1" in

# Service
if [ -f /etc/init.d/wazuh-agent ]; then
if [ -d /run/systemd/system ]; then
if [ ! -z "$(file /sbin/init |grep 'systemd')" ]; then
systemctl enable wazuh-agent > /dev/null 2>&1
fi
update-rc.d wazuh-agent defaults > /dev/null 2>&1
Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.12.0/wazuh-agent/debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ case "$1" in
rm -rf ${WAZUH_TMP_DIR}
fi

if [ -d /run/systemd/system ] ; then
if [ ! -z "$(file /sbin/init |grep 'systemd')" ]; then
systemctl disable wazuh-agent > /dev/null 2>&1
systemctl daemon-reload
systemctl reset-failed
Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.12.0/wazuh-manager/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ case "$1" in

# Service
if [ -x /etc/init.d/wazuh-manager ]; then
if [ -d /run/systemd/system ]; then
if [ ! -z "$(file /sbin/init |grep 'systemd')" ]; then
systemctl daemon-reload
systemctl enable wazuh-manager > /dev/null 2>&1
fi
Expand Down
2 changes: 1 addition & 1 deletion debs/SPECS/3.12.0/wazuh-manager/debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ case "$1" in



if [ -d /run/systemd/system ] ; then
if [ ! -z "$(file /sbin/init |grep 'systemd')" ]; then
systemctl disable wazuh-manager > /dev/null 2>&1
systemctl daemon-reload
systemctl reset-failed
Expand Down