feat: auto-start systemd service after RPM installation
- Add 'systemctl start logcorrelator.service' in post script - Update both packaging/rpm/post and logcorrelator.spec - Service is now enabled AND started automatically on install Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@ -45,6 +45,7 @@ fi
|
||||
if [ -x /bin/systemctl ]; then
|
||||
systemctl daemon-reload
|
||||
systemctl enable logcorrelator.service
|
||||
systemctl start logcorrelator.service
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user