mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
add upstart
This commit is contained in:
parent
9d587af806
commit
e074f61985
2 changed files with 12 additions and 0 deletions
2
debian/rules
vendored
2
debian/rules
vendored
|
@ -1,8 +1,10 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
COPYRIGHT=LICENSE
|
||||
PKGFILES = pkg/*.service pkg/*.upstart
|
||||
|
||||
%:
|
||||
cp $(PKGFILES) debian
|
||||
cp $(COPYRIGHT) debian/copyright
|
||||
dh $@
|
||||
|
||||
|
|
10
pkg/salt-api.upstart
Normal file
10
pkg/salt-api.upstart
Normal file
|
@ -0,0 +1,10 @@
|
|||
description "Salt API"
|
||||
|
||||
start on (net-device-up
|
||||
and local-filesystems
|
||||
and runlevel [2345])
|
||||
stop on runlevel [!2345]
|
||||
|
||||
script
|
||||
exec salt-api
|
||||
end script
|
Loading…
Add table
Reference in a new issue