Tag Info

New answers tagged

0

According to upstart cookbook: A Service Job is a long-running (or daemon(3) process). It is the opposite of a Task Job since a Service Job might never end of its own accord. Examples of Service Jobs are entities such as databases, webservers or ftp servers. In your example, I assume that /some/directory/python_code.py is like a daemon. ...


0

According to upstart-cookbook shutdown process follows this steps: Emit runlevel event and enter in runlevel 0 The job /etc/init/rc.conf will be run. This job calls /etc/init.d/rc passing it the new runlevel ("0"). The SystemV system will then invoke the necessary scripts in /etc/rc0.d/ to stop SystemV services. One of the scripts run is ...


1

According to Ubuntu upstart cookbook: Ubuntu currently employs a hybrid system where core services are handled by Upstart, but additional services can be run in the legacy SystemV mode. This may seem odd, but consider that there are thousands of packages available in Ubuntu via the Universe and Multiverse repositories and hundreds of services. To ...


0

OK. I thought I solved it. There was nothing wrong with the final version of the script. It was the name. the name was rtorrent.conf. This must generate some sort of conflict with the actual rtorrent program. All I did was rename the script to run-rtorrent and it worked fine. ONCE After that, it hangs again every time I run it - even after a reboot and ...


0

You can put the following into your /etc/environment file: PATH="/mnt/data/src:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" PYTHONPATH="/mnt/progs/link" Of course, this method won't "append", but it shouldn't be necessary due to this are the main environment variables, and other applications should append to ...


0

export PATH=~/bin:"$PATH" You should add this in ~/.bashrc file to work at every user session. You should restart to see it working or try . .bashrc command to work without restart.


1

This question is for Debian not for Ubuntu, as the later uses upstart instead of sysvinit. Anyways, on Debian you have to explicitly remove the sysvinit package beforehand: root@debian:/etc# aptitude remove sysvinit The following packages will be REMOVED: sysvinit 0 packages upgraded, 0 newly installed, 1 to remove and 1 not upgraded. Need to get 0 B ...


1

I would continue to use the pre/post inst scripts, preinst - This script executes before that package will be unpacked from its Debian archive (".deb") file. Many 'preinst' scripts stop services for packages which are being upgraded until their installation or upgrade is completed (following the successful execution of the 'postinst' script). ...


0

The issue turned out to be the way I was writing the Node.js web app code, using paths relative to the web app script that broke when run by upstart. I added __dirname + "/", and the silent failures became quiet successes.


1

I've posted an answer to a similar question: http://askubuntu.com/a/490900/297973. Long story short, the messages should show up in dmesg, and you may need to add $KLogPermitNonKernelFacility on to rsyslogd's config to see them in /var/log.


1

I've posted an answer to Bradd's question: http://askubuntu.com/a/490900/297973. Long story short, you may need to add $KLogPermitNonKernelFacility on to rsyslogd's config.


2

Short version The log entries should actually show up in dmesg. Despite that, they do not show up by default in /var/log. If you want them in /var/log too, add $KLogPermitNonKernelFacility on to rsyslogd's config. I suggest creating a custom file like /etc/rsyslog.d/60-custom.conf to avoid editing /etc/rsyslog.conf, since that's managed by dpkg. Now ...


-2

schroot: It has the feature of session management. When you stop the session its all processes are killed. https://github.com/dnschneid/crouton/blob/master/host-bin/unmount-chroot: This scripts kill all the chroot process and unmounts all the mounted devices.


0

Just for the record, OP solved his problem by using bytes, not kilobytes.



Top 50 recent answers are included