UNIMAS Official Wiki » Dashboard » HOW-TO, Tutorial & User Manual » HOW-TO : Run Application as Service in Ubuntu 14.04 using SystemV
Last modified by Khairilzamrie bin Rosle on 2016/03/18 16:32
From version 2.1
edited by Khairilzamrie bin Rosle
on 2016/03/18 16:30
To version 3.1
edited by Khairilzamrie bin Rosle
on 2016/03/18 16:32
Change comment: There is no comment for this version

Content changes

... ... @@ -1,16 +1,15 @@
1 1 Make sure that you follow the following steps while adding/creating new service in ubuntu.
2 2
3 3 1. Create the service file in /etc/init.d/<service name>
4 - {{code language="bash"}}sudo ln -s /opt/youapp.jar /etc/init.d/<service name>{{/code}}
4 +\\ {{code language="bash"}}sudo ln -s /opt/youapp.jar /etc/init.d/<service name>{{/code}}
5 +\\
5 5 1. Set permission for the service
6 -{{code language="Bash"}}sudo chmod 700 /etc/init.d/<service name>{{/code}}
7 +\\{{code language="Bash"}}sudo chmod 700 /etc/init.d/<service name>{{/code}}
8 +\\
7 7 1. Update RC file for automatic start-up during bootup
8 8 \\{{code language="Bash"}}sudo update-rc.d <service name> defaults
9 -sudo update-rc.d <service name> enable{{/code}}
11 + sudo update-rc.d <service name> enable{{/code}}
10 10 \\
11 11 1. (% style="font-size: 14px;" %)Now you can view your service using this command :
12 -(%%)
13 -{{code}}sudo service --status-all{{/code}}
14 +\\{{code language="Bash"}}sudo service --status-all{{/code}}
14 14
15 -{{{
16 -}}}

Start Here

Welcome to the UNIMAS WIKI.
To start, use search function by entering keywords in the search box below :
 

Quick Navigation

About UNIMAS

HOW-TO, Tutorial & User Manual

HOW-TO, Tutorial &amp; User Manual

Macros

STB2242 - PLANT BIOTECHNOLOGY

Semester Registration

signatureattach

Recently Modified

My Recent Modifications


This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 5.0.3 - Documentation