Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
supervise-daemon has strange output in rc-status
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 453

PostPosted: Wed Dec 08, 2021 9:23 am    Post subject: supervise-daemon has strange output in rc-status Reply with quote

I have a program I run as a daemon: https://github.com/Javeree/YCast


In openrc, I wanted to try supervise-daemon, and wrote the following init file:
Code:
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

#extra_started_commands="reload"
pidfile="/var/run/ycast.pid"
command="/usr/local/bin/ycast.py"
command_args="${YCAST_ARGS}"
description="Fake vtuner Radio Directory Service"
supervisor="supervise-daemon"

depend() {
        need net
        # allow nginx to start first, so that ycast doesn't block it
        after nginx
        use localmount
}


This work fine, except that when I run rc-status, I see:
Quote:
ycast [ started 38654705684 day(s) 231928234042:-5192843884369883184:20424531083870172 (������p�,�) ]


Is there something I need to do to get the rc-status output correct ?
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1678

PostPosted: Fri Dec 10, 2021 5:17 am    Post subject: Reply with quote

Could you share emerge --info? Wondering what architecture you're on.

I suspect this was caused by this commit (not entirely sure) and might be fixed by this.

Could you try this patch in /etc/portage/patches/sys-apps/openrc/rc-status.patch?
Back to top
View user's profile Send private message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 453

PostPosted: Sat Dec 11, 2021 10:00 pm    Post subject: Reply with quote

Thanks, that patch was indeed the solution on this 32 bit atom N280 system

emerge --info
Quote:
Portage 3.0.28 (python 3.9.8-final-0, default/linux/x86/17.0/desktop, gcc-10.3.0, glibc-2.33-r7, 5.8.14 i686)
=================================================================
System uname: Linux-5.8.14-i686-Intel-R-_Atom-TM-_CPU_N280_@_1.66GHz-with-glibc2.33
KiB Mem: 1996700 total, 639880 free
KiB Swap: 2421352 total, 1854708 free
Timestamp of repository gentoo: Fri, 10 Dec 2021 03:00:01 +0000
Head commit of repository gentoo: 206a4fafe970e01932e9da30980a63be8eb67288
Timestamp of repository brave-overlay: Fri, 10 Dec 2021 13:51:29 +0000
Head commit of repository brave-overlay: 5d7d6febf75767d96448f5039f329688b337c246

Head commit of repository wsdd: 1156bfeeee76150f811af9d8049d0edfb4277851

sh dash 0.5.11.3-r1
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash: 5.1_p8::gentoo
dev-lang/perl: 5.34.0-r3::gentoo
dev-lang/python: 2.7.18_p13::gentoo, 3.7.10_p6::gentoo, 3.8.12_p1::gentoo, 3.9.8::gentoo
dev-lang/rust: 1.56.1::gentoo
dev-util/cmake: 3.20.5::gentoo
sys-apps/baselayout: 2.7-r3::gentoo
sys-apps/openrc: 0.44.9::gentoo
sys-apps/sandbox: 2.25::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo
sys-devel/automake: 1.13.4-r2::gentoo, 1.16.4::gentoo
sys-devel/binutils: 2.35.2::gentoo, 2.36.1-r2::gentoo, 2.37_p1::gentoo
sys-devel/gcc: 10.3.0-r2::gentoo, 11.2.0::gentoo
sys-devel/gcc-config: 2.4::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.10-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.33-r7::gentoo
Repositories:

gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 24
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts: --new-compress

brave-overlay
location: /var/db/repos/brave-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/brave-overlay.git
masters: gentoo

javeree
location: /var/db/repos/javeree
masters: gentoo

wsdd
location: /var/db/repos/wsdd-gentoo
sync-type: git
sync-uri: https://github.com/christgau/wsdd-gentoo.git
masters: gentoo

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=bonnell -mmmx -msse -msse2 -msse3 -mssse3 -msahf -mmovbe -mfxsr --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=bonnell"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/xsessions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CPPFLAGS="-O2 -pipe -march=bonnell -mmmx -msse -msse2 -msse3 -mssse3 -msahf -mmovbe -mfxsr --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=bonnell -D_FILE_OFFSET_BITS=64"
CXXFLAGS="-O2 -pipe -march=bonnell -mmmx -msse -msse2 -msse3 -mssse3 -msahf -mmovbe -mfxsr --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=bonnell"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --verbose-conflicts --quiet-build y --jobs=2 --load-average=2"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=bonnell -mmmx -msse -msse2 -msse3 -mssse3 -msahf -mmovbe -mfxsr --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=bonnell"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=bonnell -mmmx -msse -msse2 -msse3 -mssse3 -msahf -mmovbe -mfxsr --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=bonnell"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common"
LINGUAS=" en en_US en_UK en_GB nl"
MAKEOPTS="-j2 -l2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--new-compress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa bluetooth branding bzip2 cairo cdda cdr classic cli crypt cups dbus dri dts dv dvd dvdr elogind emboss encode exif ffmpeg flac gdbm gif glibc-omitfp gnome-keyring gpm gtk gui iconv icu id3tag ipod ipv6 ithreads jpeg lame lcms libass libglvnd libnotify libtirpc mad matroska mng mp3 mp4 mpeg mtp ncurses nfs nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline rtmp samba scanner sdl seccomp smp spell split-usr ssl startup-notification svg system-av1 system-cairo system-ffmpeg system-harfbuzz system-icu system-jpeg system-jsoncpp system-libevent system-libvpx system-lua system-mathjax system-sqlite system-webp system-zlib tiff truetype udev udisks unicode upower usb v4l vaapi vim-syntax vorbis wma wxwidgets x264 x86 xattr xcb xml xv xvid zeroconf zlib" ABI_X86="32" ADA_TARGET="gnat_2020" ALSA_CARDS="intel8x0" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US en-GB nl fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="BPF" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_8 python3_9" RUBY_TARGETS="ruby26 ruby27" SANE_BACKENDS="mustek_pp" USERLAND="GNU" VIDEO_CARDS="vesa intel i965" XTABLES_ADDONS="ipset geoip tarpit"
Unset: CC, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RUSTFLAGS
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1678

PostPosted: Tue Dec 14, 2021 4:30 am    Post subject: Reply with quote

Thanks a lot! A revised PR was merged here and it should be in the next release.

EDIT: FWIW, a bug was also filed later here.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum