Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version='1.0'?> | ||
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> | ||
<service_bundle type='manifest' name='composer'> | ||
<service name='application/composer' type='service' version='0'> | ||
<create_default_instance enabled='true'/> | ||
<single_instance/> | ||
<dependency name='multiuser' grouping='require_all' restart_on='error' type='service'> | ||
<service_fmri value='svc:/milestone/multi-user:default'/> | ||
</dependency> | ||
<exec_method name='start' type='method' exec='forever start $HOME/conservatory/bin/composer --config $HOME/config/composer.json' timeout_seconds='60'> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jcrugzz
Author
Member
|
||
<method_context> | ||
<method_credential user='root' group='root'/> | ||
<method_environment> | ||
<envvar name='PATH' value='/opt/local/bin:/usr/bin:/bin'/> | ||
<envvar name='HOME' value='/root'/> | ||
</method_environment> | ||
</method_context> | ||
</exec_method> | ||
<exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'> | ||
<method_context /> | ||
</exec_method> | ||
</service> | ||
</service_bundle> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
# | ||
# Start bin/composer with forever | ||
# Start bin/composer with SMF | ||
# | ||
forever start $HOME/quill-composer/bin/composer -e $q_env --config $HOME/config/composer.json -p $q_composer_port | ||
svcadm enable composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'd recommend dropping
forever
from the mix. I think that this will cause SMF to executeforever start
indefinitely becauseforever
exits after spawning a daemon.Besides that, come on, you have SMF, why use forever?