|
@@ -16,35 +16,28 @@ fi
|
|
|
|
|
|
cp -f $basedir/settings/monitor /etc/init.d/
|
|
|
cp -f $basedir/settings/console /etc/init.d/
|
|
|
-cp -f $basedir/settings/reportquery /etc/init.d/
|
|
|
|
|
|
chmod 777 /etc/init.d/monitor
|
|
|
chmod 777 /etc/init.d/console
|
|
|
-chmod 777 /etc/init.d/reportquery
|
|
|
|
|
|
if test -x /usr/lib/systemd/system
|
|
|
then
|
|
|
cp -f $basedir/settings/monitor.service /usr/lib/systemd/system
|
|
|
cp -f $basedir/settings/console.service /usr/lib/systemd/system
|
|
|
- cp -f $basedir/settings/reportquery.service /usr/lib/systemd/system
|
|
|
|
|
|
chmod 777 /usr/lib/systemd/system/monitor.service
|
|
|
chmod 777 /usr/lib/systemd/system/console.service
|
|
|
- chmod 777 /usr/lib/systemd/system/reportquery.service
|
|
|
|
|
|
systemctl daemon-reload
|
|
|
systemctl enable monitor
|
|
|
systemctl enable console
|
|
|
- systemctl enable reportquery
|
|
|
|
|
|
else
|
|
|
chkconfig monitor on
|
|
|
chkconfig console on
|
|
|
- chkconfig reportquery on
|
|
|
fi
|
|
|
|
|
|
service monitor start
|
|
|
service console start
|
|
|
-service reportquery start
|
|
|
|
|
|
echo "Installation is complete!"
|