The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
36 views

What causes import command to fail as running through a service

Our System V service runs a daemon that runs the import command. Running our service by sudo service myservice start seems to start the service but when it comes to take a screenshot, import does not ...
1
vote
1answer
57 views

How to investigate runlevel initialization?

I'm investigating why a service (solr) is not started upon server booting (in this case a vagrant box, running ubuntu 12.04). The script is running if i run /etc/init.d/solr start I run sudo ...
0
votes
0answers
10 views

Where do I find init script/file in source code?

Below is the log messages of booting linux on ARM Cortex A9 processor: U-BOOT for Xilinx-ZC702-14.7 SF: Detected N25Q128A with page size 64 KiB, total 16 MiB SF: 3571500 bytes @ 0x520000 Read: OK ...
0
votes
1answer
40 views

linux startup script not executing script in user's home directory

I want a script on my raspberry pi to run when the system boots. That's why I've created a script inside /etc/init.d that is linked in /etc/rc2.d This is the script inside init.d: #! /bin/sh ### ...
3
votes
2answers
98 views

Why will dmesg have message from user space?

you can use dmesg -u to see log from userspace. In my case, I have log from systemd and lvm. Why is this happening, why userspace program can print to kernel buffer ring?
1
vote
1answer
36 views

Issues with init script services - Ubuntu 12.10

During boot, I get a series of messages like modem-manager: ... modem-manager: ... . . . I tried disabling this feature with sudo update-rc.d -f remove modem-manager remove EDIT: The output I ...
1
vote
0answers
147 views

Automatically mounting an encrypted USB disk at boot

I've followed these steps to set up an encrypted USB hard disk on Lubuntu 13.10, and these to unlock it with a keyfile instead of a passphrase. I now have a disk ...
0
votes
2answers
116 views

How can I run a command after boot? [duplicate]

I would like to run the simple shell command echo 1 > /proc/sys/kernel/sysrq at each boot, to enable the sysrq keys. When in boot should this be done, and where should I put a script to do it?
0
votes
1answer
47 views

Creating a Git repro on my website

I'm not clear on which folder I should CD into to create my Git init? My Linux server folder structure is home/account/public_html Should I be in my public_html folder when I do the init? Thanks... ...
1
vote
2answers
109 views

How to debug old initd script under systemd?

I have an older initd script to start my application. It worked fine under older versions of SuSE, but fails on Open SuSE 12.3. The strange thing is cd /etc/init.d ; ./script start works fine. ...
0
votes
0answers
110 views

USB dongle for Steam Box (Debian, init, gdm, and runlevels)

I would like use my desktop computer as a normal desktop computer at one time, and a "Steam Box" another. By default I want the computer to boot as a normal desktop; but I want it to be able to boot ...
0
votes
0answers
30 views

Remove auto init process when I login in Ubuntu

I need to remove the auto-init process when I login and open my session in Ubuntu. The process execute it five or six copies when i open a new session in Ubuntu. I can see it: ps -u myuser Can ...
2
votes
1answer
1k views

Automatic script launch after booting on Debian

I try to launch some scripts at boot time on my Raspberry Pi (running Raspbian Wheezy). I have created the file /etc/init.d/datalogger-serveur : #! /bin/sh ### BEGIN INIT INFO # Provides: ...
0
votes
1answer
1k views

Does Linux Mint use upstart or update-rc.d to manage inti scripts?

In Linux Mint 15 the /etc/init.d/README is copied from Debian and says to use update-rc.d to manage scripts. However, all the script comment headers reference Upstart throughout. Does it make a ...
2
votes
0answers
165 views

Making sysvinit load EVERYTHING in parallel - why does this even work?

I edited /etc/init.d/rc on my Debian machine and changed startup boot to startup boot &. Boot time decreases ridiculously, and no race conditions happen at all. Way faster than even Systemd (which ...
2
votes
1answer
409 views

Files in /etc/init - are all files executed or just the ones with conf extension?

I have some files in /etc/init that I am still testing. As far as I know all files in that directory is executed on boot. My doubt is: does it apply to every *.conf file or to all of them? What if I ...
1
vote
2answers
296 views

At what point are cgroups initialized for systemd?

So to cut a long story short, I am trying to get systemd working with an Arch install, but without running systemd from init. This means I am booting into a system that is not running systemd, then ...
2
votes
0answers
362 views

/etc/init.d/lvm2 script not executed during startup

On startup, I want the /etc/init.d/lvm2 script shipped with Debian squeeze to be executed. I ran update-rc.d lvm2 enable and checked that the symlinks are created in the /etc/rcX.d folders: # find ...
2
votes
0answers
644 views

LVM volume activation before fstab mounts

I am trying to mount LVM volumes during startup of my Debian Squeeze system. Since for some reason, the LVM volumes / groups are inactive by default, they need to be activated before any mounting can ...
3
votes
1answer
680 views

Minimize boot time on headless ubuntu

I am trying to remove as much processes as possible to minimize the boot time on a beaglebone running ubuntu minimal. So i want to remove udev-fallback-graphics and all plymouth processes. I tried ...
0
votes
2answers
438 views

How to disable CTRL-C during init process?

I have set up a kiosk system with Linux Debian Wheezy. After booting a user gets logged in automatically, executing startx through /etc/inittab. Problem is that people could shutdown the machine or ...
1
vote
2answers
316 views

How to execute a command under Linux after booting without a TTY session?

I'm creating a kiosk PC at the moment and I'm wondering if this is possible: When the PC is started and Linux Debian boots and I wonder if it's possible to start the command startx respectively xinit ...
0
votes
1answer
1k views

init.d script for OpenOffice / LibreOffice headless does not stop process

I am using Ubuntu and found this init.d script for LibreOffice headless. Problem is that it does not seem to be stopping the process when asked to "stop". Any help greatly appreciated. Two other ...
1
vote
1answer
2k views

How do I prevent Apache service from auto-starting on Linux?

My problem is that I don't want to stop the apache daemon with the command ./apache2 stop from /etc/init.d (I know to do this). I don't want the apache service start automatically in /etc/init.d on ...
2
votes
0answers
55 views

What is the `/etc/hostname` used/required for?

I found in the /etc/hostname my IP-address, than I deleted it and each time I use sudo - I get a message and a system email sudo: unable to resolve host (none) or if in the /etc/hostname is saved ...
2
votes
1answer
57 views

Getting directory of file

I have found an error in monit init script that I want to fix on my own for now. The faulty code is PID_DIR=$(/bin/basename "$MONIT_PID_FILE") /bin/mkdir -p -m0700 "$PID_DIR" The developer wants to ...
1
vote
1answer
2k views

Unable to change IP address for eth0 without restart in Ubuntu

I have Ubuntu 12.04.1 installed. I tried to change the IP address of the interface eth0 in /etc/network/interfaces from 192.168.1.3 to 192.168.1.4 auto lo iface lo inet loopback pre-up ...
1
vote
1answer
279 views

Understanding init script faults with sysctl

I made my own init script for starting a Mono web application within mod-mono-server2 container (I didn't use AutoHosting, I'm aware of it). When I had openSUSE 11.4 with init I was able to read on ...
1
vote
1answer
124 views

When does crontab starts?

I'm having lots of problems with my Ubuntu 10.04 in AWS and init scripts. I have my rc.local with some mounts, mkdirs & more but they don't do everything as expected, just a few of them and not ...
1
vote
0answers
460 views

using screen with start-stop-daemon, sysv

I'm trying to run a program with an ncurse interface as a daemon using screen. I want to use start-stop-daemon to manage the process, but I'm having trouble creating a SysV init script. Variables: ...
2
votes
4answers
2k views

how do i run a script 5mn after startup?

I have severals RoR websites running on my webserver and I need to run a ruby script at startup. So, I puted a bash script in /etc/init.d witch call a ruby process. Unfortunatly that ruby process ...
1
vote
1answer
374 views

Making upstart job redirect output as unprivileged user

I am currently making an upstart job run as an unprivileged user like so: start on started mongodb stop on runlevel [06] respawn respawn limit 10 100 env NODE_ENV=production pre-start script ...
0
votes
0answers
1k views

On Ubuntu 10.04 Server, make mysql start at boot?

I did a apt-get update & installed few updates on my server which runs 10.04LTS. But this has broken mysql. it doesn't start at boot. I tried to manually start it using the following commands: $ ...
4
votes
1answer
3k views

How do I debug an upstart job?

I have the following job in /etc/init/collector: start on runlevel [2345] stop on runlevel [!2345] expect daemon exec /usr/bin/twistd -y /path/to/my/tac/file When I start the job with sudo ...
0
votes
1answer
382 views

How can grub pass any custom variable into system enviroment?

I want to identify which menu entry has been lauched in rc scripts. So is it possible to pass any variable into my system via kernel argument?
0
votes
0answers
203 views

How to start init, but not startup scripts?

I specified rdinit=/bin/sh and manually booted the system (in chroot) from command line, complete with mounted filesystems, network services and X desktop. The init is still busybox's /bin/sh. The ...
5
votes
2answers
684 views

Controlling Upstart job as unprivileged user

What's the best way to allow an unprivileged user to control an upstart job? By controlling an upstart job I mean starting/stopping/reloading/restarting it: start myservice I can imagine one way ...
0
votes
1answer
331 views

How to fork two process in inittab without waiting one to finish?

I know how to fork to process. That is not a problem. But my issue is a little different. Example inittab line: ::respawn:-/usr/bin/python /path/to/script.py && /bin/sh -l -c 'chown ...
3
votes
3answers
2k views

LANG=C is in a number of the /etc/init.d/* scripts. What does LANG=C do and why do you need to set LANG=C.

Its not clear what it does or what it contains. I tried greping the out put of set and env to see what C or LANG are set to in other places on the systems. Nothing was clear about how it is used or ...
1
vote
1answer
90 views

Are start parameter reused from /etc/init.d/XY restart?

I start my postgreSQL-Db with this command: /usr/lib/postgresql/8.4/bin/pg_ctl -D /usr/local/pgsql/data -l /var/log/globus/postgresql.log -o -i start are the parameters kept if I restart ...
2
votes
1answer
922 views

Why do scripts beginning with an 'S' exist in /etc/rc.d/rc{0,6}.d?

Why do scripts beginning with an 'S' exist in /etc/rc.d/rc{0,6}.d? Will there be trouble if I change the 'S' to a 'K'? Is the behavior of the system changed when it halts/reboots?
6
votes
3answers
11k views

What are the desktop.ini files for?

My desktop has two hidden .ini files: desktop.ini (370 bytes): [.ShellClassInfo] LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21799 [LocalizedFileNames] Microsoft Office - 60 Day ...
1
vote
1answer
872 views

Ubuntu Moving root folder to a new lvm partition

I began running out of space on my / partition*. So I decided to create a new lvm partition and move to that one instead. Now, I have created the lvm partition, mounted it, rsync folders from / to ...
1
vote
1answer
295 views

Who modifies `/etc/init.d/.depend.start` in openSUSE 11?

Where are the dependency data taken from? Which process modifies the .depend.* files and under which circumstances does this happen?
1
vote
1answer
219 views

Is it safe to backup init.d and rc*.d

is it possible to backup init.d and rc*.d (i.e. rc3.d) normally? just copying and adding .backup extension? I don't want to mess with the symbolic links. I'm deactivating unnecessary processes (e.g. ...
0
votes
1answer
233 views

Init script approx 30 sec to stop

Actually I used a skeleton init script provided in /etc/init.d/ and did some edits to run my own daemon process. This is my source code of file #! /bin/sh ### BEGIN INIT INFO # Provides: ...
1
vote
1answer
250 views

What does “switching runlevel” mean exactly?

What happens when I issue sudo telinit n (n being the new runlevel)? Does init scans /etc/inittab and does exactly the same when system is booted? For example, if I have rm:2345:wait:/etc/rc.multi ...
0
votes
1answer
2k views

start-stop-daemon works at command line but doesn't work in /etc/init.d script

I'm trying to get a starter script (for a ruby gem called ar_sendmail) working in /etc/init.d/ar_sendmail: #! /bin/sh echo "in /etc/init.d/ar_sendmail" DIR=/home/max/work/e_learning_resource/trunk ...
1
vote
3answers
16k views

Kill xserver from command line (init 3/5 does not work)

I'm running Linux Mint 10, although I've had this same issue with other variants of Linux. I've been told/found while researching that if the X server hangs or otherwise errors, one can drop to a root ...
4
votes
1answer
1k views

Where can I config service startup options in Ubuntu?

I'm not used to using Ubuntu or Debian as a server. I'm more accustomed to Red Hat/Fedora ways and even Gentoo (yikes). Under Red Hat installs, you can often configure most services that start from ...