Date: Sat, 17 Feb 2018 13:12:09 +0000 From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 225985] XDM missing a rc service: submitting a simple tested draft Message-ID: <bug-225985-7141@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225985 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@FreeBSD.org Reporter: edmonddantes@gmx.us Assignee: x11@FreeBSD.org Flags: maintainer-feedback?(x11@FreeBSD.org) Hi,=20 along with some other XDM users, I noticed the x11/xdm package does not ext= ract 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-questio= ns 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=3Dxdm rcvar=3D${name}_enable command=3D"/usr/local/bin/${name}" command_args=3D"-nodaemon" pidfile=3D"/var/run/${name}.pid" required_files=3D"/usr/local/etc/X11/xdm/xdm-config" export PATH=3D"/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" load_rc_config $name run_rc_command "$1" --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225985-7141>