Re: [gentoo-user] How does OpenRC know if a service is crashed?
Am Donnerstag, 2. August 2018, 11:32:23 CEST schrieb Alarig Le Lay: > Hi, > > Some times ago, I wrote a basic init script for a service I?m running > but that is not in the tree. > It?s just a python script behind a reverse-proxy. > > bulbizarre ~ # cat /etc/init.d/paste-py > #!/sbin/openrc-run > # Copyright 1999-2015 Gentoo Foundation > # Distributed under the terms of the GNU General Public License v2 > # $Header: $ > > #depend() { > # > #} > > start() { > start-stop-daemon --start --user pastepy --exec paste-py.sh --name > paste-py eend $? > } > > stop() { > kill $(cat /opt/paste-py/paste.pid) > } > bulbizarre ~ # cat $(which paste-py.sh) > #!/bin/sh > > port="$(grep port /opt/paste-py/paste-py.conf | cut -d '=' -f 2)" > addr="$(grep addr /opt/paste-py/paste-py.conf | cut -d '=' -f 2)" > > cd /opt/paste-py > source bin/activate > ./daemonize.py --port=${port} --addr=${addr} > bulbizarre ~ # cat /opt/paste-py/paste.pid > 9480 > bulbizarre ~ # ps aux | grep 9480 > root 493 0.0 0.0 11440 924 pts/3S+ 11:14 0:00 grep > --colour=auto 9480 pastepy 9480 0.0 0.4 113548 16848 ?S > 08:05 0:00 python ./daemonize.py --port=8087 --addr=127.0.0.1 > > So, the process is running (and responding), but OpenRC shows it as > crashed > > bulbizarre ~ # rc-status | grep crash > paste-py [ > crashed ] > > What do I have to change? > > Thanks, Hey Alarig, I suggest to read the man-page of start-stop-daemon to get an detailed idea of how it works. You use '--name paste-py' which tells start-stop-daemon to look for a process named 'paste-py' to see if it is still running, when you request the status. As your shell-script runs daemonize.py as the last step and then quits itself, there is no process with the name 'paste-py' and therefore the reported status is 'crashed'. Use '--pidfile /opt/paste-py/paste.pid' instead. With this, the status is determined by reading the pid from the file and then looking if this pid is still running. Greets Manuel
Re: [gentoo-user] Unknown gcc-version needed by nvidia-cuda-toolkit?
Am Sonntag, 8. April 2018, 05:46:09 CEST schrieb tu...@posteo.de: > ...I think, that gcc-7.3.0 matches But what is the 'c' in '[cxx]' for? If the cxx useflag is active, gcc will have support to compile c++ Greets Manuel
Re: [gentoo-user] Kmail message components
Am Dienstag, 3. April 2018, 19:49:16 CEST schrieb Mick: > On Tuesday, 3 April 2018 16:45:45 BST Manuel Mommertz wrote: > > Am Dienstag, 3. April 2018, 14:42:31 CEST schrieb Mick: > > > Hi All, > > > > > > After some recent KDE updates I noticed that Kmail-5.7.3 no longer shows > > > the message components at the bottom of the preview pane. As a result I > > > can't see the components of multipart messages or select to view HTML > > > content on a per message basis, should I want/need to do so. > > > > > > Have you noticed the same? Any idea how I could restore this feature? > > > > you need to press ctrl+alt+D now to activate it. No menu entry anymore, > > see: see https://bugs.kde.org/show_bug.cgi?id=387931 > > Thank you Manuel. Unfortunately ctrl+alt+D on an Enlightenment desktop does > something entirely different (minimises all windows). > > I used Settings/Configure Toolbars and added "Show Message Structure" to the > main menu for now. > > On a Plasma desktop it works as advertised, so other users on Plasma who may > need this feature could use it accordingly. > > Annoyingly, the 'View Source' submenu option was also removed ... arrrgh! > However, pressing 'v' on a preview pane acts as a short cut for this > function. Yeah, 'View Source' is the other menu-entry I miss since some versions. > Thanks again for your help with this. No problem
Re: [gentoo-user] Kmail message components
Am Dienstag, 3. April 2018, 14:42:31 CEST schrieb Mick: > Hi All, > > After some recent KDE updates I noticed that Kmail-5.7.3 no longer shows the > message components at the bottom of the preview pane. As a result I can't > see the components of multipart messages or select to view HTML content on > a per message basis, should I want/need to do so. > > Have you noticed the same? Any idea how I could restore this feature? you need to press ctrl+alt+D now to activate it. No menu entry anymore, see: see https://bugs.kde.org/show_bug.cgi?id=387931
Re: [gentoo-user] Peculiar problem: no su - to root
Am Samstag, 3. Februar 2018, 22:05:14 CET schrieb Harry Putnam: > I've just completed getting gentoo booted as guest in vbox vm. > > I'm having a peculiar problem. I cannot call `su -' or `su root' and > login as root. > > I can still get to root by `ssh root@localhost' having set up > /etc/sshd_config while still chrooted during install. > > Still no getting to root by way of `su -' or `su root' > > I just get the `Permission denied' message. > > I've never had this happen before over many installs of various linux > distros. > > I did try ssh root@localhost and then resetting root passwd while > logged in as root, but still no getting to root by `su -'. > > Any ideas whats might be wrong. Adding you normal user to the wheel group should help. ;)