Questions tagged [lsb]
The lsb tag has no usage guidance.
23
questions
0
votes
1
answer
57
views
Conflict with Debian version
On a server I set up a few years ago, typing cat /etc/lsb-release gives me the following result:
DISTRIB_RELEASE=7
DISTRIB_CODENAME=
DISTRIB_DESCRIPTION=
And lsb_release -a displays:
Distributor ID: ...
3
votes
1
answer
7k
views
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 ...
0
votes
1
answer
251
views
Unit apache2.service has begun starting up
I upgraded from debian 7 to 8 (yeah - quite late) and so from apache2.4 to 2.4, before i go for debian 9 I need some help for this issue:
when I start apache I get this:
Nov 14 15:20:32 srv087 ...
4
votes
7
answers
7k
views
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 ...
1
vote
2
answers
263
views
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/$...
18
votes
4
answers
31k
views
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?
4
votes
2
answers
5k
views
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
[...
1
vote
1
answer
200
views
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 ...
1
vote
1
answer
2k
views
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 ...
3
votes
1
answer
4k
views
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-...
13
votes
1
answer
14k
views
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 $?
;;
...
0
votes
2
answers
4k
views
LSB confirm startup script won't start apache tomcat on ubuntu
I want to start my tomcat server automatically on startup. Therefore I retrieved a simple LSB conform script from the net and modified it to my needs. This is the script:
# Provide logging functions ...
44
votes
2
answers
52k
views
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. ...
0
votes
2
answers
1k
views
Debian - error while loading shared libraries
i have an problem with script DocToText from Silvercoders.com on my 64bit Debian Squeeze. It works properly on another 32bit machine, but on this i have still problem with some .so module.
# file /...
1
vote
1
answer
285
views
LSB Script: how do i know if something goes wrong?
How do I know if a LSB script fails to load or where do I check the log of the lsbs scripts?
I added two scripts with the following command:
update-rc.d scriptname defaults
And just one launches ...
0
votes
1
answer
3k
views
Workaround for starting zabbix agent on Ubuntu. update-rc.d LSB mismatch
I am trying to run the zabbix-agent (1.8.1) on boot on Ubuntu (lucid 10.04).
Zabbix is installed just fine, and it manually starts just fine with /etc/init.d/zabbix-agent start
However it doesn't ...
3
votes
2
answers
4k
views
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-...
1
vote
1
answer
520
views
Question regarding Linux LSB init script directives
I'm making some init scripts to start some system services that require other services to have started in order to start successfully. For instance, one service requires that xenstored be running ...
1
vote
2
answers
3k
views
Is LSB's init script function "start_daemon" really used for real daemons or should I stick to start-stop-daemon?
In the context of init scripts, according to the LSB specification, "Each conforming init script shall execute the commands in the file /lib/lsb/init-function", which then defines a couple of ...
6
votes
1
answer
10k
views
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
<?php
/*...
4
votes
1
answer
24k
views
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 ...
3
votes
3
answers
8k
views
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 ...
8
votes
2
answers
174
views
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 ...