Questions tagged [lsb]
23 questions
41
votes
2 answers
Do some debian builds not have lsb_release?
A .deb package I am releasing expects that it can call lsb_release. One customer using Debian 6.0.5 indicated that the lsb_release command (even in the terminal) produces a command not found error. Is this standard or is there something wrong with…
UsAaR33
- 1,036
- 3
- 11
- 20
16
votes
3 answers
Debian 8 : No LSB modules are available
When I run lsb_release on Debian 8, following error is appeared:
No LSB modules are available.
Is there any missing file causes this problem?
Reza Fallahpour
- 316
- 1
- 2
- 7
12
votes
1 answer
What is status_of_proc, and how do I call it?
In the init script of nginx in Debian 7 (Wheezy) I read the following exerpt:
status)
status_of_proc -p /var/run/$NAME.pid "$DAEMON" nginx && exit 0 || exit $?
;;
This code runs just fine and sudo service nginx status…
Rovanion
- 569
- 3
- 6
- 22
8
votes
2 answers
Is there a good summary somewhere of what should go in each of the main folders in a linux install?
eg bin, sbin, proc, lib, boot, usr, etc...
Is there a standard list somewhere, does it depend on the distro?
This is essentially to answer the common question I have "I'm installing X or putting Y on the server, what folder should I put it in?"
Glenn Slaven
- 2,330
- 2
- 29
- 41
6
votes
1 answer
Launching a PHP daemon from an LSB init script w/ start-stop-daemon
I'm writing an lsb init script (admittedly something I've never done from scratch) that launches a php script that daemonizes itself. The php script starts off like so:
#!/usr/bin/env php
EvanK
- 247
- 2
- 7
- 13
4
votes
7 answers
How to detect linux distribution and version?
I want to detect linux distribution and version.
I searched with my favorite search engine and discovered lsb_release.
Unfortunately this tool is not installed by default.
I would like to avoid to install lsb_release first.
Is there no easier way to…
guettli
- 3,113
- 14
- 59
- 110
4
votes
2 answers
pacemaker corosync lsb resource script( Sybase database ASE server and backup server)
I'm trying to create a lsb resource with pcs on rhel7.2
The "sybase" script is about Sybase Database ASE Server and Backup Server Startup & Stop & Restart $ status script
Before
[root@pldbsv01 ~]# pcs status
Cluster name: PLDBSV_CLUSTER
…
Arthur Cheng
- 41
- 1
- 2
4
votes
1 answer
How to conform to update-rc.d with LSB standard?
This is a migrated question from stackoverflow, as I was told, this is the place for it to be.
https://stackoverflow.com/questions/2263567/how-to-conform-to-update-rc-d-with-lsb-standard
I have set up a simple script to back up some directories.…
user34881
3
votes
1 answer
Corosync/Pacemaker + Haproxy Failed Actions: insufficient privileges
I setup a Corosync/Pacemaker cluster + HAproxy using the following guide on Ubuntu 14.04 LTS:
http://www.sebastien-han.fr/blog/2012/04/15/active-passive-failover-cluster-on-a-mysql-galera-cluster-with-haproxy-lsb-agent/
I have not added the virtual…
invulnarable27
- 183
- 1
- 3
- 8
3
votes
2 answers
Reorder the way in which scripts are run at startup
I just moved to debian squeeze and need to change the startup sequence of some scripts. I used to do this with update-rc.d service defaulta xx xx but now with the LSB way of doing things the update-rc.d method does not change the order.
I need to…
Ricardo Marimon
- 529
- 4
- 11
- 26
3
votes
3 answers
Redhat init script best practice
I want to write an init service script which runs the program as a particular user (and not root). I will then chkconfig this script and install into my production run level.
I could just put a su command in the script but I was wondering if there…
Garry Harthill
- 864
- 1
- 11
- 17
2
votes
1 answer
Create a custom /etc/init.d script in Debian 10 Buster
I need to develop an /etc/init.d script to start and stop a server (binary executable) in Debian 10 Buster. Whereas in earlier versions of Debian, you would write a complete shell script that issues calls to 'start-stop-daemon', in recent releases…
tcdaly
- 75
- 2
- 9
1
vote
2 answers
Bash script aborting after defining lsb functions
I'm currently trying to get a script to work, which needs to define some LSB functions. This is happening here:
echo "step 1"
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
# Load the VERBOSE…
Chester
- 111
- 1
1
vote
1 answer
Run command in screen when LSB initscript stopped
I'm trying to get a Bukkit server to run inside a screen as a service, started from an LSB script but I cant get it to stop correctly. What I essentially want it to do is reattach the screen and send a 'stop' command to the server console so it…
bhygate
- 11
- 2
1
vote
1 answer
Order of services using systemd and legacy init.d services
On my Fedora 23 system a database is started by systemd. Another service (hive-metastore) that depends on that database ist started through a init.d script. I'am unclear about what would be the correct way to make those services start in the right…
cstotzer
- 113
- 4