Re: Daemons in schroot or how to start chroot automatically

2012-08-21 Thread Bob Proulx
Roger Leigh wrote: > Bob Proulx wrote: > > There are two issues. ... > > So one key question here: do you have /proc mounted inside the > chroot? No. I only do that if the task and applications I am running in the chroot require it. But for my typical chroot these are rarely required. Sure they

Re: Daemons in schroot or how to start chroot automatically

2012-08-16 Thread Roger Leigh
On Wed, Aug 15, 2012 at 06:54:56PM -0600, Bob Proulx wrote: > There are two issues. And I know that the /run transition was > discussed at length in debian-devel. Unfortunately I wasn't following > it then and only run into this problem now. I think using bind mounts > in either of the two cases

Re: Daemons in schroot or how to start chroot automatically

2012-08-15 Thread Bob Proulx
Roger Leigh wrote: > Bob Proulx wrote: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665827 > > Note that this is a bug against initscripts, not debianutils. Yes. But both are buggy! I also filed a bug against ischroot. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685034 > Is t

Re: Daemons in schroot or how to start chroot automatically

2012-08-15 Thread Roger Leigh
On Wed, Aug 15, 2012 at 05:58:03PM -0600, Bob Proulx wrote: > Roger Leigh wrote: > > Bob Proulx wrote: > > > I haven't submitted a bug yet but I always have problems with sysvinit > > > postinst depending upon ischroot and ischroot getting it wrong and > > > that leaving a broken /run - /var/run be

Re: Daemons in schroot or how to start chroot automatically

2012-08-15 Thread Bob Proulx
Roger Leigh wrote: > Bob Proulx wrote: > > I haven't submitted a bug yet but I always have problems with sysvinit > > postinst depending upon ischroot and ischroot getting it wrong and > > that leaving a broken /run - /var/run behind. You might hit that too. > > If this is still happening, please

Re: Daemons in schroot or how to start chroot automatically

2012-07-23 Thread Ramon Hofer
On Mon, 2012-07-23 at 19:15 +0100, Roger Leigh wrote: > On Mon, Jul 23, 2012 at 06:27:22PM +0200, Ramon Hofer wrote: > > I now changed the stop function to (added the if test) to get rid of > > error messages when running `sid-sabnzbdplus stop` twice: > > stop_sab() { > > if [ -f /var/lib/sch

Re: Daemons in schroot or how to start chroot automatically

2012-07-23 Thread Roger Leigh
On Mon, Jul 23, 2012 at 06:27:22PM +0200, Ramon Hofer wrote: > I now changed the stop function to (added the if test) to get rid of > error messages when running `sid-sabnzbdplus stop` twice: > stop_sab() { > if [ -f /var/lib/schroot/session/sid-sab ]; then > schroot -rq -c $NAME /etc/i

Re: Daemons in schroot or how to start chroot automatically

2012-07-23 Thread Ramon Hofer
On Mon, 2012-07-23 at 10:25 +0100, Roger Leigh wrote: > On Sun, Jul 22, 2012 at 05:27:14PM +0200, Ramon Hofer wrote: > > On Son, 2012-07-22 at 15:58 +0100, Roger Leigh wrote: > > > On Sun, Jul 22, 2012 at 03:25:49PM +0200, Ramon Hofer wrote: > > > > On Sam, 2012-07-21 at 22:05 +0100, Roger Leigh wr

Re: Daemons in schroot or how to start chroot automatically

2012-07-23 Thread Ramon Hofer
On Mon, 2012-07-23 at 11:34 +0100, Roger Leigh wrote: > On Sun, Jul 22, 2012 at 06:31:48PM +0200, Ramon Hofer wrote: > > On Sam, 2012-07-21 at 22:18 +0100, Roger Leigh wrote: > > > On Sat, Jul 21, 2012 at 11:54:58AM +, Ramon Hofer wrote: > > > > > > > Is there another one which I can use to se

Re: Daemons in schroot or how to start chroot automatically

2012-07-23 Thread Roger Leigh
On Sun, Jul 22, 2012 at 06:31:48PM +0200, Ramon Hofer wrote: > On Sam, 2012-07-21 at 22:18 +0100, Roger Leigh wrote: > > On Sat, Jul 21, 2012 at 11:54:58AM +, Ramon Hofer wrote: > > > > > Is there another one which I can use to set specific mounts? > > > Like in my case the config dir in my ho

Re: Daemons in schroot or how to start chroot automatically

2012-07-23 Thread Roger Leigh
On Sun, Jul 22, 2012 at 05:27:14PM +0200, Ramon Hofer wrote: > On Son, 2012-07-22 at 15:58 +0100, Roger Leigh wrote: > > On Sun, Jul 22, 2012 at 03:25:49PM +0200, Ramon Hofer wrote: > > > On Sam, 2012-07-21 at 22:05 +0100, Roger Leigh wrote: > > > > I would also check the return status of schroot.

Re: Daemons in schroot or how to start chroot automatically

2012-07-22 Thread Ramon Hofer
On Sam, 2012-07-21 at 22:18 +0100, Roger Leigh wrote: > On Sat, Jul 21, 2012 at 11:54:58AM +, Ramon Hofer wrote: > > On Fri, 20 Jul 2012 17:32:14 +0100, Roger Leigh wrote: > > > > > On Fri, Jul 20, 2012 at 12:48:49PM +, Ramon Hofer wrote: > > >> On Fri, 20 Jul 2012 10:42:58 +0100, Roger Le

Re: Daemons in schroot or how to start chroot automatically

2012-07-22 Thread Ramon Hofer
On Son, 2012-07-22 at 15:58 +0100, Roger Leigh wrote: > On Sun, Jul 22, 2012 at 03:25:49PM +0200, Ramon Hofer wrote: > > On Sam, 2012-07-21 at 22:05 +0100, Roger Leigh wrote: > > > > > > Firstly, add schroot to Required-(Start|Stop), since you do > > > need it to be set up prior to starting new se

Re: Daemons in schroot or how to start chroot automatically

2012-07-22 Thread Roger Leigh
On Sun, Jul 22, 2012 at 03:25:49PM +0200, Ramon Hofer wrote: > On Sam, 2012-07-21 at 22:05 +0100, Roger Leigh wrote: > > > > Firstly, add schroot to Required-(Start|Stop), since you do > > need it to be set up prior to starting new sessions. > > Thanks for the hint! > I added $schroot at the end

Re: Daemons in schroot or how to start chroot automatically

2012-07-22 Thread Ramon Hofer
On Sam, 2012-07-21 at 22:05 +0100, Roger Leigh wrote: > On Sat, Jul 21, 2012 at 04:52:24PM +, Ramon Hofer wrote: > > On Sat, 21 Jul 2012 11:54:58 +, Ramon Hofer wrote: > > > > > I found what I did wrong: In the init.d script I used chroot instead of > > > schroot: > > > http://pastebin.com

Re: Daemons in schroot or how to start chroot automatically

2012-07-21 Thread Roger Leigh
On Sat, Jul 21, 2012 at 11:54:58AM +, Ramon Hofer wrote: > On Fri, 20 Jul 2012 17:32:14 +0100, Roger Leigh wrote: > > > On Fri, Jul 20, 2012 at 12:48:49PM +, Ramon Hofer wrote: > >> On Fri, 20 Jul 2012 10:42:58 +0100, Roger Leigh wrote: > >> > >> > On Thu, Jul 19, 2012 at 12:34:26PM +

Re: Daemons in schroot or how to start chroot automatically

2012-07-21 Thread Roger Leigh
On Sat, Jul 21, 2012 at 04:52:24PM +, Ramon Hofer wrote: > On Sat, 21 Jul 2012 11:54:58 +, Ramon Hofer wrote: > > > I found what I did wrong: In the init.d script I used chroot instead of > > schroot: > > http://pastebin.com/raw.php?i=Lamy4K4a > > > > Could you please help me with the cor

Re: Daemons in schroot or how to start chroot automatically

2012-07-21 Thread Ramon Hofer
On Sat, 21 Jul 2012 11:54:58 +, Ramon Hofer wrote: > I found what I did wrong: In the init.d script I used chroot instead of > schroot: > http://pastebin.com/raw.php?i=Lamy4K4a > > Could you please help me with the correct command? > Instead of `chroot /srv/chroot/sid /etc/init.d/sabnzbdplus

Re: Daemons in schroot or how to start chroot automatically

2012-07-21 Thread Ramon Hofer
On Fri, 20 Jul 2012 17:32:14 +0100, Roger Leigh wrote: > On Fri, Jul 20, 2012 at 12:48:49PM +, Ramon Hofer wrote: >> On Fri, 20 Jul 2012 10:42:58 +0100, Roger Leigh wrote: >> >> > On Thu, Jul 19, 2012 at 12:34:26PM +, Ramon Hofer wrote: >> >> I have some questions about starting daemons i

Re: Daemons in schroot or how to start chroot automatically

2012-07-21 Thread Ramon Hofer
On Fri, 20 Jul 2012 14:24:11 -0600, Bob Proulx wrote: > First I should say that schroot appears to have a lot more functionality > than I previously realized. I had thought it was just a fancy suid > chroot similar to 'dchroot' adding a security layer around chroot(2). > But it looks like it can

Re: Daemons in schroot or how to start chroot automatically

2012-07-20 Thread Bob Proulx
First I should say that schroot appears to have a lot more functionality than I previously realized. I had thought it was just a fancy suid chroot similar to 'dchroot' adding a security layer around chroot(2). But it looks like it can do much more including building chroots on the fly and other r

Re: Daemons in schroot or how to start chroot automatically

2012-07-20 Thread Roger Leigh
On Fri, Jul 20, 2012 at 12:48:49PM +, Ramon Hofer wrote: > On Fri, 20 Jul 2012 10:42:58 +0100, Roger Leigh wrote: > > > On Thu, Jul 19, 2012 at 12:34:26PM +, Ramon Hofer wrote: > >> I have some questions about starting daemons in a chroot environment or > >> rather about starting schroot o

Re: Daemons in schroot or how to start chroot automatically

2012-07-20 Thread Ramon Hofer
On Fri, 20 Jul 2012 10:42:58 +0100, Roger Leigh wrote: > On Thu, Jul 19, 2012 at 12:34:26PM +, Ramon Hofer wrote: >> I have some questions about starting daemons in a chroot environment or >> rather about starting schroot on bootup. >> The reason I want to do this is to clean up my server. It'

Re: Daemons in schroot or how to start chroot automatically

2012-07-20 Thread Ramon Hofer
Thanks for your answer, Bob! On Thu, 19 Jul 2012 21:28:52 -0600, Bob Proulx wrote: >> Installed sid $ sudo debootstrap sid /srv/chroot/sid/ >> http://ftp.ch.debian.org/debian/ > > I haven't submitted a bug yet but I always have problems with sysvinit > postinst depending upon ischroot and ischroo

Re: Daemons in schroot or how to start chroot automatically

2012-07-20 Thread Roger Leigh
On Thu, Jul 19, 2012 at 12:34:26PM +, Ramon Hofer wrote: > I have some questions about starting daemons in a chroot environment or > rather about starting schroot on bootup. > The reason I want to do this is to clean up my server. It's a Squeeze > with an AMD64 kernel from backports. Some pac

Re: Daemons in schroot or how to start chroot automatically

2012-07-20 Thread Roger Leigh
On Thu, Jul 19, 2012 at 09:28:52PM -0600, Bob Proulx wrote: > Ramon Hofer wrote: > > Installed sid > > $ sudo debootstrap sid /srv/chroot/sid/ http://ftp.ch.debian.org/debian/ > > I haven't submitted a bug yet but I always have problems with sysvinit > postinst depending upon ischroot and ischroot

Re: Daemons in schroot or how to start chroot automatically

2012-07-19 Thread Bob Proulx
Ramon Hofer wrote: > Installed sid > $ sudo debootstrap sid /srv/chroot/sid/ http://ftp.ch.debian.org/debian/ I haven't submitted a bug yet but I always have problems with sysvinit postinst depending upon ischroot and ischroot getting it wrong and that leaving a broken /run - /var/run behind. You

Re: Daemons

2010-05-04 Thread Boyd Stephen Smith Jr.
On Tuesday 04 May 2010 04:40:13 exp...@hope.cz wrote: > I have several running daemons that write some data to files > What happens with these open files when INIT 6 command is issued? Depends on the daemon. Prior to a clean reboot, a process is sent the TERM signal, which it may handle howeve

Re: Daemons

2010-05-04 Thread Ron Johnson
Since SIGTERM is catchable, your code should nicely clean itself up. On 05/04/2010 06:06 AM, Anand Sivaram wrote: normally as a part during reboot/shutdown procedure, sigterm is sent to all processes. This causes processes to terminate during which file descriptors are closed down flushing the

Re: Daemons

2010-05-04 Thread Anand Sivaram
normally as a part during reboot/shutdown procedure, sigterm is sent to all processes. This causes processes to terminate during which file descriptors are closed down flushing their cache. This is written to disk during filesytem sync. So these files are preserved. But when the system goes down

Re: daemons, init.d, and console output experts

2004-04-06 Thread David M . Besonen
On Tue, 06 Apr 2004 13:08:18 -0700, David M.Besonen <[EMAIL PROTECTED]> wrote: >problem. modem works fine when i (as root) use the debian script >included with slmodem-2.9.6.tar.gz or when i start the daemon manually here's that script for easy reference: #!/bin/sh # # slmodemd:Starts the S

Re: daemons?--no lpr/pon

2000-07-26 Thread John Hasler
Your modem is not responding at all. See if you can get through to it with minicom. -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI

Re: daemons?--no lpr/pon

2000-07-26 Thread pplaw
sure. Script started on Wed Jul 26 13:10:15 2000 HOST:/home/bt# cat /etc/ppp/peers/isp1                  var/log/ppp.log Jul 25 18:33:35 HOST pppd[313]: pppd 2.3.11 started by bt, uid 1000 Jul 25 18:33:36 HOST chat[314]: abort on (BUSY) Jul 25 18:33:36 HOST ch

Re: daemons?--no lpr/pon

2000-07-26 Thread David Z. Maze
cls--colo spgs <[EMAIL PROTECTED]> writes: cls> running potato on customized 2.2.16, i get this error message if cls> i lpr [file]: cls> cls> "lpr: connect: connection refused cls> jobs queued, but cannot start daemon." I've had the line printer daemon (lpd) spontaneously die on me for no appar

Re: daemons?--no lpr/pon

2000-07-26 Thread John Hasler
pplaw writes: > with pon [isp1], i get no dialout. (...will send the ppp.log if needed). Please do. -- John Hasler [EMAIL PROTECTED] Dancing Horse Hill Elmwood, Wisconsin

Re: Daemons that use the serial ports

2000-06-13 Thread Shaul Karl
> > > On Mon, 12 Jun 2000, Shaul Karl wrote: > > Perhaps lock files in /var/lock/ can help? > > That's the problem, there's no LCK..ttyS0 or S1 in it. > Just speculating: maybe lsof? > Oki > > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null --

Re: Daemons that use the serial ports

2000-06-12 Thread Oki DZ
On Mon, 12 Jun 2000, Shaul Karl wrote: > Perhaps lock files in /var/lock/ can help? That's the problem, there's no LCK..ttyS0 or S1 in it. Oki

Re: Daemons that use the serial ports

2000-06-12 Thread Shaul Karl
> Hi, > > How do you know what daemons that currently using the serial ports? > My system behaves strangely; when it was init'ed to single user, the > serial ports (/dev/ttyS0 and S1) can be probed using setserial -a. But > when it was other than single user, setserial -a said that the devices > w

Re: daemons -- who needs'em?

2000-05-01 Thread w trillich
John Pearson wrote: > > On Sun, Apr 30, 2000 at 04:23:50PM -0500, w trillich wrote > > but what i was referring to was the console-happy curses-based gizmo > > that ran only on the FIRST BOOT after installing bare-bones kernel > > stuff from cd. blue screen, white selector bars, and TAB to rotate

Re: daemons -- who needs'em?

2000-04-29 Thread Marek Habersack
** On Apr 28, Brad scribbled: > > > i merely think i have a screwy setting here or there that's > > > needlessly duplicating log messages. settings are the bane of > > > my linux existence, still... > > Now, stop right here for a while. syslog isn't Linux - it's a common > > software, created qui

Re: daemons -- who needs'em?

2000-04-28 Thread Brad
On Fri, Apr 28, 2000 at 05:18:08PM +0200, Marek Habersack wrote: > ** On Apr 28, w trillich scribbled: > > > i merely think i have a screwy setting here or there that's > > needlessly duplicating log messages. settings are the bane of > > my linux existence, still... > Now, stop right here for a

Re: daemons -- who needs'em?

2000-04-28 Thread John Pearson
On Fri, Apr 28, 2000 at 09:45:11AM -0500, w trillich wrote > Joey Hess wrote: > > > > w trillich wrote: > > > > > we need them _both_ because... well... um... > > > > Because syslogd handles the userspace messages, klogd handles the kernel > > > > messages. > > > > > > there's still a AWFUL lot

Re: daemons -- who needs'em?

2000-04-28 Thread Vitux
Honoured Debianites. Isn't it about time to cut this thread? It seems to be evolving into the vi vs emacs vs pico vs idunnowhat or the everlasting dselect struggle. In other words, ideology... I've acquired quite a few tips following it, but now its getting out of hand. (IMHO, etc, please; let's

Re: daemons -- who needs'em?

2000-04-28 Thread Marek Habersack
** On Apr 28, w trillich scribbled: > > > there's still a AWFUL lot of overlap! > > > > No there's not. Please give the people who wrote linux some credit for > > sense. > > i saved the output from > tail -50 /var/log/syslog > tail -50 /var/log/daemon.log > and did a 'diff' on them:

Re: daemons -- who needs'em?

2000-04-28 Thread David Wright
Quoting w trillich ([EMAIL PROTECTED]): > Joey Hess wrote: > > > > w trillich wrote: > > > > > we need them _both_ because... well... um... > > > > Because syslogd handles the userspace messages, klogd handles the kernel > > > > messages. > > > > > > there's still a AWFUL lot of overlap! > > >

Re: daemons -- who needs'em?

2000-04-28 Thread w trillich
Joey Hess wrote: > > w trillich wrote: > > > > we need them _both_ because... well... um... > > > Because syslogd handles the userspace messages, klogd handles the kernel > > > messages. > > > > there's still a AWFUL lot of overlap! > > No there's not. Please give the people who wrote linux som

Re: daemons -- who needs'em?

2000-04-28 Thread Marek Habersack
** On Apr 28, Joey Hess scribbled: > Marek Habersack wrote: > > > rwhod = server for 'whois [EMAIL PROTECTED]' I didn't write that :)) :P > > useless crap (IMHO) But I still hold on to this point of view - completely useless > No, rwhod doesn't have anything to do with whois. How useful it is

Re: daemons -- who needs'em?

2000-04-27 Thread Joey Hess
w trillich wrote: > > > we need them _both_ because... well... um... > > Because syslogd handles the userspace messages, klogd handles the kernel > > messages. > > there's still a AWFUL lot of overlap! No there's not. Please give the people who wrote linux some credit for sense. klogd contains

Re: daemons -- who needs'em?

2000-04-27 Thread Joey Hess
Marek Habersack wrote: > > rwhod = server for 'whois [EMAIL PROTECTED]' > useless crap (IMHO) No, rwhod doesn't have anything to do with whois. How useful it is is ia matter of opinion, I happen to like this a lot: [EMAIL PROTECTED]:~>ruptime box up 142+20:37, 0 users, load 0.00,

Re: daemons -- who needs'em?

2000-04-27 Thread Nathan E Norman
On Thu, Apr 27, 2000 at 11:31:07AM +0200, Marek Habersack wrote: [ snip ] > > 4 ?SW 0:00 [md_thread] > > 5 ?SW 0:00 [md_thread] > You probably don't need these two. They're auto-mounter threads AFAIR Actually they're Multiple Device driver threads (Concat, RAID0, RA

Re: daemons -- who needs'em?

2000-04-27 Thread Marek Habersack
** On Apr 27, w trillich scribbled: > to paraphrase bob hope's theme--thanks for the summaries! > > > > > 2206 ?S 0:00 /sbin/portmap > > Portmapper for the RPC-based services (kinda a dispatch for them) > > > portmap = something to do with Remote-Procedure-Call? > > precisely > > c

Re: daemons -- who needs'em?

2000-04-27 Thread Ethan Benson
On Thu, Apr 27, 2000 at 06:50:49AM -0500, w trillich wrote: > to paraphrase bob hope's theme--thanks for the summaries! > > > > > 2206 ?S 0:00 /sbin/portmap > > Portmapper for the RPC-based services (kinda a dispatch for them) > > > portmap = something to do with Remote-Procedure-Ca

Re: daemons -- who needs'em?

2000-04-27 Thread w trillich
to paraphrase bob hope's theme--thanks for the summaries! > > 2206 ?S 0:00 /sbin/portmap > Portmapper for the RPC-based services (kinda a dispatch for them) > > portmap = something to do with Remote-Procedure-Call? > precisely can i ditch it? is it essential somehow? > > *logd =

Re: daemons -- who needs'em?

2000-04-27 Thread Ethan Benson
On Thu, Apr 27, 2000 at 11:31:07AM +0200, Marek Habersack wrote: > > 2018 ?S 0:00 /usr/sbin/afpd -n server > > 2020 ?S 0:00 /usr/sbin/papd > Don't know these two :)) afpd == AppleTalk Filing Protocol daemon -- exports parts of your filesystem so MacOS users can mount

Re: daemons -- who needs'em?

2000-04-27 Thread Marek Habersack
** On Apr 27, w trillich scribbled: > ever wonder what all those background processes are for? > > me too, and i still do. if you have some answers, please > post them for us newbies. > > # ps t\? > PID TTY STAT TIME COMMAND > 1 ?S 0:06 init [2] parent of all the process

Re: Daemons & Ports and stuff

1998-07-13 Thread fantomas
-> 1. I was checking to see what services my computer was running today with -> nmap. And there was all sorts of stuff like daytime and chargen that I -> don't use, so I removed all the extraneous entries in /etc/inetd.conf -> (using comments), leaving only ftp and telnet. Is this okay; do I need -

Re: Daemons & Ports and stuff

1998-07-11 Thread Lindsay Allen
I'm no expert, but perhaps I can help a little. You should not have two ftp entries. If I were you I would install either proftp or wu-ftp because these are more secure that ftpd. After doing so check inetd again and make sure that the present lines are commented out. I have echo and chargen c

Re: Daemons & Ports and stuff

1998-07-10 Thread Nathan E Norman
On Fri, 10 Jul 1998, Shaleh wrote: : > 4. Can I get Apache and sshd to run from inetd instead of on their own? : : apache is not recommended to be run from inetd on a machine thats gets : any decent number of hits. All you do for the inetd entry is ad a line : for the port the server runs on. J

Re: Daemons & Ports and stuff

1998-07-10 Thread Shaleh
> 4. Can I get Apache and sshd to run from inetd instead of on their own? apache is not recommended to be run from inetd on a machine thats gets any decent number of hits. All you do for the inetd entry is ad a line for the port the server runs on. Just copy one of the other lines. -- Unsubs