Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lsb]

The Linux Standard Base (LSB) was created to lower the overall costs of supporting the Linux platform. By reducing the differences between individual Linux distributions, the LSB greatly reduces the costs involved with porting applications to different distributions, as well as lowers the cost and effort involved in after-market support of those applications.

1
vote
1answer
22 views

How to migrate a multi-instance LSB script to systemd?

I wrote an LSB init script that can manage multiple instances of my daemon: rcfoo start starts all the instances (which are found in some /etc configuration file), rcfoo stop stops all the instances, ...
0
votes
0answers
283 views

Does “### BEGIN INIT INFO” section of service scripts have any effect in Centos?

I am testing under: Centos 6.8 If I do man chkconfig there is a section saying the following: chkconfig also supports LSB-style init stanzas, and will apply them in preference to "chkconfig:" ...
4
votes
1answer
6k views

Can systemctl list all enabled services, including legacy services?

This question asks: "How to list all enabled services from systemctl?" Answers on that page include: systemctl list-unit-files | grep enabled systemctl list-unit-files --state=enabled At least as ...
2
votes
1answer
729 views

LSB codename isn't a valid Linux Mint codename, cannot install Wine

Just installed Linux Mint 18.2 Cinnamon yesterday and am now trying to get Wine installed but everything I do results in this same error. Somehow my codename must not match to Linux Mint Cinnamon and ...
-1
votes
1answer
2k views

What is the best method to test if a program exists for a shell script? [duplicate]

I'm just curious to know how to best check if a program exists. I've seen solutions with test command hash type which [ Which is the best method, is there a right answer? What does the POSIX and ...
12
votes
2answers
22k views

Reducing shutdown timeout for “a stop job is running”

I've got node.js and pm2 installed on a Pi (Raspbian). PM2 was configured to start via pm2 startup and the init scripts it creates. Sometimes when I reboot, shutdown hangs for a few minutes on: A ...
1
vote
2answers
6k views

Startup script to run a shell script as daemon

I am using Debian Stretch with systemd version 231-9. I need to run some shell scripts and non-daemon programs in background even when I logout. I used to make simple init.d scripts with LSB header ...
3
votes
1answer
3k views

How to redirect a daemon's stdout and stderr using start-stop-daemon(8)?

I run Debian 8 jessie. I have activated a daemon's debugging facility, which causes the daemon to print debugging info to stdout and/or stderr. How can I persuade start-stop-daemon(8), as invoked by /...
2
votes
0answers
58 views

Is there a standard way for getting the media mount path (like /media/user, /run/media/user…)?

In an application, I need to find out where removable media is mounted. On Ubuntu, this happens in /media/username/ . On Arch, it is /run/media/username/ . On other systems, its just /media/ etc. ...
6
votes
1answer
370 views

confusing behavior of LSB Init Scripts in Debian

I am experiencing strange behavior with LSB Init Scripts in Debian Wheezy. I can demonstrate the problem on following example: The script /etc/init.d/resolvconf starts in S and stops in runlevels 0 ...
2
votes
1answer
121 views

What is it that parses the LSB information in init scripts?

At the top of files in /etc/init.d are comments like the following. ### BEGIN INIT INFO # Provides: ntp # Required-Start: $network $remote_fs $syslog # Required-Stop: $network $remote_fs $...
1
vote
1answer
169 views

Why have the X server configuration files moved from /etc/Xorg to /usr/share/Xorg?

It used to be the case (since the XFree86 days and maybe earlier) that X server configuration files are to be found under /etc; namely in /etc/Xorg. However, recent distributions (at least, recent ...
2
votes
1answer
2k views

Hamachi failing to install/start on debian 8 server

i am trying to set up a headless minecraft server using debian. So far everything is working save for hamachi (portforwarding is coming later). I installed the .deb file from https://secure.logmein....
4
votes
1answer
2k views

Why did pip install a package into ~/.local/bin?

When I install this "Taurus Blazemeter 'bzt'" program with pip, it ends up being installed into ~/.local/bin folder. mkdir ~/bzt && cd ~/bzt sudo apt-get install python default-jre-...
1
vote
0answers
333 views

How to write LSB init.d scripts that can run multiple instances of the same service?

Here is the problem I have: I do have to run multiple instances of several services on the same machine and I want to be able to re-use the init.d scripts. You can see here an example of service ...
13
votes
4answers
30k views

How to change timeout in systemctl

When I boot my Debian system, its startup hangs for approximately 2 minutes on the line: Loading, please wait... [ 5.191043] systemd-fsck[129]: /dev/mmcblk0p2: clean, 234192/873120 files, 2335263/...
1
vote
1answer
580 views

Startup script with LSB headers not working correctly (dependency problem)?

I am creating a startup script for my Ubuntu 14.04.1 LTS server. The script need to be run after the Rabbit MQ server. The Rabbit MQ startup script says it provides "rabbitmq-server". So I put this ...
2
votes
1answer
2k views

start-stop-daemon returning always 0 (success)

I have set up start-stop-daemon to start my script automatically case "$1" in start) log_begin_msg "starting foo" start-stop-daemon --start --chuid nobody --user nobody --pidfile \ ...
6
votes
2answers
2k views

Is Android compatible with the Linux Standard Base?

Moved from Stack Overflow, where I realize it was off-topic since it was asking for sources - far as I can tell, the rules forbid that there but not here. I know that the kernel in Android is now ...
1
vote
0answers
577 views

Ubuntu Trusty Preseed Error

I have a preseed file that installs Trusty but the install is giving me this error: Jul 22 17:52:42 in-target: Setting up sysv-rc (2.88dsf-41+deb7u1) ... Jul 22 17:52:42 in-target: info: Reordering ...
4
votes
1answer
654 views

What provides LSB virtual boot facilities for Debian?

Debian's version of Sysv init uses scripts which reference various LSB "virtual" boot facilities such as $local_fs and $network as requirements for use by insserv in setting up the boot sequence, but ...
1
vote
1answer
1k views

How to install an Intel binary file on ARM?

I am trying to install a binary file, and I get the output as "Cannot install binary". When I did file .bin, the output is: c64plus-imglib_2_02_00_00_Linux-x86_Setup.bin: ELF 32-bit LSB executable, ...
4
votes
1answer
3k views

How do I run a script just before halt using LSB headers on Raspbian

I'm building a shutdown button for my Raspberry pi, and for that I have a python script that needs to change a GPIO pin on my Raspberry Pi just before the system runs the halt script. Now Raspbian ...
1
vote
1answer
173 views

Setting up Bind9 - lsb-base not in sources

I've been having real trouble installing Bind9 following this tutorial http://forums.debian.net/viewtopic.php?f=16&t=39146 When I get to entering these commands: apt-get -y build-dep lsb-base ...
4
votes
2answers
2k views

How do I get the DISTRIB_CODENAME?

Which is the shortest way to get the variable $DISTRIB_CODENAME from /etc/lsb-release? I want to make this somewhat shorter: $ sudo add-apt-repository \ "deb http://some-repo/ubuntu $(grep ...
1
vote
0answers
122 views

what does the linux standard base specify about the kernel?

I was taking a look at the Linux standard base (lsb) and could not find much interesting info on the kernel. Does the LSB specify anything at all about the kernel or kernel interface? Is it kernel ...
1
vote
0answers
55 views

How to interpret the explicit references to GNU in the LSB specifications?

The LSB is a specification, and as such, should be provider neutral. But it contains many “hard‑coded” reference to GNU at many places. Ex. the ELF Linux's specific entries PT_GNU_STACK, PT_GNU_RELRO ...
5
votes
2answers
174 views

Are there any discussions about proposing a new filesystem hierarchy standard?

Are there any current discussions about switch to a different standard directory hierarchy for Linux? The only thing I currently know of is GoboLinux, which looks quite outdated.