[Bug 225985] XDM missing a rc service: submitting a simple tested draft

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Feb 17 13:12:12 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225985

            Bug ID: 225985
           Summary: XDM missing a rc service: submitting a simple tested
                    draft
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11 at FreeBSD.org
          Reporter: edmonddantes at gmx.us
          Assignee: x11 at FreeBSD.org
             Flags: maintainer-feedback?(x11 at FreeBSD.org)

Hi, 
along with some other XDM users, I noticed the x11/xdm package does not extract
a rc script in /usr/local/etc/rc.d, hence it's mandatory to enable an netry in
/etc/ttys no start XDM at login by default. I'm currently using a simple
service I created myself (tested and working), you may want to revise it and
include something similar  in the official XDM port.

My XDM a service is defined as follows:


Thursday at 11:41 AM#2
forquare said:
I've noted that there is no xdm service file in any of the rc.d directories I
can find (in /etc/rc.d and /usr/local/etc/rc.d) on either of the machines I've
tried...Is there something additional I need to install?
Hi, finally another XDM user!
I usually start it from /etc/ttys as per default, turning on the 8th entry,
I've never attempted to start as rc service, nad I can confirmx11/xdm port
doesn't extract any script inside /usr/local/etc/rc.d, and on the other had, it
seems there's no default xdm service in FreeBSD, otherwise rc.conf(5) would
have mentioned it, and it doesn't; also see this thread on freebbsd-questions
mailing list. Hence, is it possible SirDice had forgotten about having made his
own script when he stated so?
Anyway I suppose you could safely make one as well...I'm far less competent
than you here, but something like:
Code:



#!/bin/sh

. /etc/rc.subr

# PROVIDE: xdm
# REQUIRE: DAEMON LOGIN FILESYSTEMS moused
# KEYWORD: nojail shutdown

name=xdm
rcvar=${name}_enable
command="/usr/local/bin/${name}"
command_args="-nodaemon"
pidfile="/var/run/${name}.pid"
required_files="/usr/local/etc/X11/xdm/xdm-config"
export PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"

load_rc_config $name
run_rc_command "$1"

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-x11 mailing list