Tag Info

New answers tagged

0

I don't know your logger ch.qos.logback.core.FileAppender, but you could use some variables to log into a desired folder, eg: To log into root of your tomcat base folder ${catalina.base}/logs/myApp.log or in your user folder /home/drjerry/ ${user.dir}/logs/myApp.log


0

The scip upstart job: This thing really looks like somebody (you?) tried to create a new Upstart configuration file by copying an existing one and then forgot about it half-way through. The following lines in /etc/sysctl.conf, along with the respawn limit unlimited setting in the Upstart job configuration, also make me wonder if somebody has intentionally ...


1

It seems you nginx server is handle by an upsatart process. Look in the /etc/init folder, and check if there is not a file which handles nginx. grep -r nginx /etc/init Then edit this file, and remove the respawn option in the config file.


2

On Ubuntu (and Debian), creating a deb package would be the best way to go, as everything can be automated, so that no end-user intervention is needed. The only cases where package installation or upgrades are not automated are if the package has some configuration options that need input from the user (mainly during installation only) or if a configuration ...


0

Debugging By default system store logs of upstart files in /var/log/upstart. generally , it store with name_of_upstartfile.log in /var/log/upstart. Look into /var/log/upstart/file.log . where file.log is log of your init file /etc/init/file.conf. you can easy identify what you are missing in upstart script. check syntax of upstart file ...


0

I have some notes or hints that may help: respawn stanza without explicitly specifying limits has defaults. 6.28 respawn Further note that if the job does not specify the respawn limit stanza as well as the respawn stanza, the job will have the default respawn limit applied (see respawn limit). 6.29 respawn limit Respawning is ...


0

You may use pre-start stanza to send email but I think it's better to use post-stop which has the needed variables from last run. If the job was stopped normally, the RESULT environment variable will be ok, otherwise if the job was stopped because it has failed it will be failed. When the job has failed, the process that ...


0

Session Jobs are managed by the users own Session Init. Session Init is used to manage the default graphical user session. And using Session Init on a server is not fully supported.


1

Command for restart ssh service is: sudo service ssh restart


1

Have you tried: sudo systemctl restart ssh To restart SSH daemon? Going forward with systemd starting with Ubuntu 15.04, you know use this syntax to stop, start, or restart services: sudo systemctl <action> <service-name>


1

According to this answer there's an incongruity between the nginx.conf file, and the init script that controls all of the 'service' actions. The line pid /tmp/nginx.pid; should appear in your /etc/nginx/nginx.conf file. This line should be copied into all of the actions within the script at /etc/init.d/nginx wherever there's a reference to pid. Then the ...


0

Try this: sudo kill $(pgrep nginx) if not work try sudo pkill nginx if not work try search for PID of the service: ps aux | grep nginx Then kill by PID: sudo kill -9 PID


1

Nevermind, just didn't know what dpkg-divert was doing. It made a backup (initctl.distrib) so sudo rm /sbin/initctl && sudo mv /sbin/initctl.distrib /sbin/initctl fixed it.


0

To make it work we first need to change the current working folder of the bash script that is envoking the daemon.php file as a system serice before using the nohup php command. To make below work: place in (as root) /etc/init.d/yourscript chmod yourscript +x update-rc.d yourscript defaults 98 02 add line to rc2.d: /etc/init.d/yourscript start Alternative ...


1

Adding Repository sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list Install MongoDB sudo apt-get update sudo apt-get install mongodb-org or sudo apt-get install mongodb-org=2.6.0 ...



Top 50 recent answers are included