Forum › Forums › Official Releases › antiX-21/22 “Grup Yorum” › service elogind not always started on boot
- This topic has 20 replies, 4 voices, and was last updated Dec 23-9:01 am by Xecure.
-
AuthorPosts
-
December 21, 2021 at 8:00 am #73369Member
seriousness
::$ grep -i " elogind\| dbus" /etc/service/*/run /etc/service/avahi-daemon/run:# if dbus is enabled wait for it. /etc/service/bluetooth/run:# Start dbus first /etc/service/bluetooth/run:sv start dbus && sv check dbus || exit 170 /etc/service/connman/run:# Start dbus first /etc/service/connman/run:sv start dbus /etc/service/connman/run:sv start dbus && sv check dbus || exit 170 /etc/service/dbus/run:exec chpst -umessagebus dbus-daemon --system --nofork --nopidfile /etc/service/elogind/run:# Start dbus first /etc/service/elogind/run: force_dependency dbus /etc/service/elogind/run: sv start dbus && sv check dbus || exit 170 /etc/service/slimski/run:# Start elogind first (optional) /etc/service/slimski/run: force_dependency elogind /etc/service/slimski/run: sv start elogind && sv check elogind || true/lib/runit/invoke-depend does not exist
December 21, 2021 at 8:32 am #73370Member
Xecure
::/lib/runit/invoke-depend does not exist
There is the problem. I thought this was included in the latest runit-antix deb, but it must have not.
sudo geany /lib/runit/invoke-depend
Paste this inside:#!/bin/sh # runsvdir default if missing SVDIR="${SVDIR:-/etc/service}" SERVICE_SOURCE="$(dirname "$SVDIR")/sv" check_service_name(){ local SERVICE_NAME="${1}" # If service name is not valid (empty or with spaces), don't continue if [ -z "$SERVICE_NAME" ] || [ $(echo $SERVICE_NAME | grep -c " ") -gt 0 ]; then return 1 fi } symlink_dependency(){ local SERVICE_NAME="${1}" local SERV_PATH SV_R_PATH SERV_PATH="${SVDIR}/${SERVICE_NAME}" SV_R_PATH="${SERVICE_SOURCE}/${SERVICE_NAME}" # Check for missing run executable if [ ! -e "$SERV_PATH" ] && [ -x "${SV_R_PATH}/run" ]; then ln -sf "$SV_R_PATH" "$SERV_PATH" sleep 1.5 fi } check_dependency(){ local SERVICE_NAME="${1}" # Check if service already running if [ $(sv status "$SERVICE_NAME" | grep -c "^run:") -gt 0 ]; then echo "service $SERVICE_NAME is running" return 1 fi } start_dependency(){ local SERVICE_NAME="${1}" check_service_name "$SERVICE_NAME" || return 1 check_dependency "$SERVICE_NAME" && sv start "$SERVICE_NAME" || true } force_dependency(){ local SERVICE_NAME="${1}" check_service_name "$SERVICE_NAME" || return 1 # Create the dependency symlink if it is missing symlink_dependency "$SERVICE_NAME" start_dependency "$SERVICE_NAME" # Exit if service fails to be detected sv check "$SERVICE_NAME" || exit 170 }Save and restart your system. The elogind problem should no longer happen anymore.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.December 21, 2021 at 10:16 am #73373Forum Admin
anticapitalista
::New runit debs that now include the 2 missing scripts should hit the repos soon
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
December 21, 2021 at 4:59 pm #73391Moderator
Brian Masinick
::Though we have a few runit issues remaining, I can happily report that overall it works well, and at least in my use cases, it uses less resources than my other sysvinit build on my system.
Here’s my recently updated configuration (differences, changed from HARD disk to solid state drive (SSD) and different partition order):
System: Kernel: 4.9.0-279-antix.1-amd64-smp x86_64 bits: 64 compiler: gcc v: 10.2.1 Desktop: IceWM 2.9.2 Distro: antiX-21-runit_x64-base Grup Yorum 30 October 2021 base: Debian GNU/Linux 11 (bullseye) Machine: Type: Laptop System: Dell product: Inspiron 5558 v: 01 serial: <filter> Mobo: Dell model: 086DKN v: A00 serial: <filter> UEFI: Dell v: A04 date: 08/06/2015 Battery: ID-1: BAT0 charge: 30.1 Wh (100.0%) condition: 30.1/41.4 Wh (72.6%) volts: 16.5 min: 14.8 model: Samsung SDI DELL 07G07587587 status: Full CPU: Info: Dual Core model: Intel Core i7-5500U bits: 64 type: MT MCP arch: Broadwell rev: 4 cache: L2: 4 MiB flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19154 Speed: 2400 MHz min/max: 500/3000 MHz Core speeds (MHz): 1: 2400 2: 2439 3: 2370 4: 2400 Graphics: Device-1: Intel HD Graphics 5500 vendor: Dell driver: i915 v: kernel bus-ID: 00:02.0 Device-2: NVIDIA GK208BM [GeForce 920M] vendor: Dell driver: N/A bus-ID: 08:00.0 Device-3: Suyin Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 2-5:3 Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting unloaded: fbdev,vesa resolution: 1366x768~60Hz OpenGL: renderer: llvmpipe (LLVM 11.0.1 256 bits) v: 4.5 Mesa 20.3.5 direct render: Yes Audio: Device-1: Intel Broadwell-U Audio vendor: Dell driver: snd_hda_intel v: kernel bus-ID: 00:03.0 Device-2: Intel Wildcat Point-LP High Definition Audio vendor: Dell driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 Sound Server-1: ALSA v: k4.9.0-279-antix.1-amd64-smp running: yes Network: Device-1: Intel Wireless 3160 driver: iwlwifi v: kernel port: f040 bus-ID: 06:00.0 IF: wlan0 state: up mac: <filter> Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell driver: r8169 v: 2.3LK-NAPI port: e000 bus-ID: 07:00.0 IF: eth0 state: down mac: <filter> Bluetooth: Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus-ID: 2-6:4 Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: not found rfk-block: hardware: no software: yes address: see --recommends Drives: Local Storage: total: 447.13 GiB used: 4.53 GiB (1.0%) ID-1: /dev/sda vendor: Kingston model: SA400S37480G size: 447.13 GiB Partition: ID-1: / size: 78.19 GiB used: 4.52 GiB (5.8%) fs: ext4 dev: /dev/sda6 ID-2: /boot/efi size: 98.4 MiB used: 3.8 MiB (3.8%) fs: vfat dev: /dev/sda1- This reply was modified 1 year, 4 months ago by Brian Masinick.
- This reply was modified 1 year, 4 months ago by Brian Masinick.
--
Brian MasinickDecember 23, 2021 at 8:35 am #73460Member
seriousness
::Thanks Xecure & anticapitalista,
/lib/runit/invoke-depend arrived with the many updates today.
The modified files /etc/sv/slimski/run /etc/sv/elogind/run were overwritten with the original versions. Seems like everything works well.
December 23, 2021 at 9:01 am #73463Member
Xecure
::You will probably have to edit them again if you experience the same issue. The invoke-depend functions are still experimental, and maybe wont be needed in the future, but for now this is what I use to reliably start service dependencies on antiX runit.
antiX Live system enthusiast.
General Live Boot Parameters for antiX. -
AuthorPosts
- You must be logged in to reply to this topic.