![]() |
|
|
#6 | |
|
Junior Member
Join Date: May 2016
Posts: 2
|
Quote:
*edit* Just looking through the official install script, it looks like it does detect and support both upstart and systemd (this is from version 1.1.62): Code:
detect_init_daemon()
{
INIT=$(readlink /proc/1/exe)
if [ "$INIT" == "/sbin/init" ]; then
INIT=$(/sbin/init --version)
fi
[ -z "${INIT##*upstart*}" ] && SYSTEMINITDAEMON="upstart"
[ -z "${INIT##*systemd*}" ] && SYSTEMINITDAEMON="systemd"
if [ -z "$SYSTEMINITDAEMON" ]; then
echo "ERROR: the installer script is unable to find out how to start DisplayLinkManager service automatically on your system." >&2
echo "Please set an environment variable SYSTEMINITDAEMON to 'upstart' or 'systemd' before running the installation script to force one of the options." >&2
echo "Installation terminated." >&2
exit 1
fi
}
Code:
if [ "upstart" == "$SYSTEMINITDAEMON" ]; then
echo "Starting DLM upstart job"
add_upstart_script
add_pm_script "upstart"
start displaylink
elif [ "systemd" == "$SYSTEMINITDAEMON" ]; then
echo "Starting DLM systemd service"
add_systemd_service
add_pm_script "systemd"
systemctl start displaylink.service
fi
Last edited by Knowbody; 05-18-2016 at 06:42 AM. |
|
|
|
|
| Tags |
| debian, displaylink, jessie, sid, stretch |
|
|