Skip to content

hxyconan/ansible-role-upstart-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Intro

  • Ansible role for prepare a customized upstart service which will be boot up automatically during system startup and auto restart when crashed
  • The example there is running as webdriver with a TCP port
  • The service will be run each time when server reboot
  • The service will be restart automatically if crashed, try 5 times within 30 seconds, then giveup

Commands

  • The service can be stop/start via command
  • Start and stop:
sudo service myservice start|stop|status|restart
  • Manually kill process:
sudo fuser -k [THE_RUNNING_PORT]/tcp
  • Service log file: /var/log/myservice.log
  • Process id logged at in: /var/run/myservice.pid

About

Ansible role for prepare a customised upstart service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published