mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix error on kickstart command
This commit is contained in:
parent
7a163c46d8
commit
1dcc23c85b
1 changed files with 11 additions and 1 deletions
|
@ -38,9 +38,19 @@ fi
|
|||
###############################################################################
|
||||
echo "Service start: Started..." >> /tmp/postinstall.txt
|
||||
# launchctl load "/Library/LaunchDaemons/com.saltstack.salt.minion.plist"
|
||||
echo "Service start: Enabling service..." >> /tmp/postinstall.txt
|
||||
launchctl enable system/com.saltstack.salt.minion
|
||||
echo "Service start: Bootstrapping service..." >> /tmp/postinstall.txt
|
||||
launchctl bootstrap system /Library/LaunchDaemons/com.saltstack.salt.minion.plist
|
||||
launchctl kickstart -kp system/com.saltstack.salt.minion
|
||||
|
||||
if /bin/launchctl list "com.saltstack.salt.minion" &> /dev/null; then
|
||||
echo "Service is running" >> /tmp/postinstall.txt
|
||||
else
|
||||
|
||||
echo "Service start: Kickstarting service..." >> /tmp/postinstall.txt
|
||||
launchctl kickstart -kp system/com.saltstack.salt.minion
|
||||
fi
|
||||
|
||||
echo "Service start: Successful" >> /tmp/postinstall.txt
|
||||
|
||||
echo "Post install completed successfully" >> /tmp/postinstall.txt
|
||||
|
|
Loading…
Add table
Reference in a new issue