/[gentoo-x86]/eclass/systemd.eclass
Gentoo

Diff of /eclass/systemd.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.10
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.9 2011/09/17 13:48:21 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.10 2012/01/05 23:20:02 mgorny Exp $
4 4
5# @ECLASS: systemd.eclass 5# @ECLASS: systemd.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# mgorny@gentoo.org 7# mgorny@gentoo.org
8# @BLURB: helper functions to install systemd units 8# @BLURB: helper functions to install systemd units
103 [[ ${#} -eq 2 ]] || die "Synopsis: systemd_enable_service target service" 103 [[ ${#} -eq 2 ]] || die "Synopsis: systemd_enable_service target service"
104 104
105 local target=${1} 105 local target=${1}
106 local service=${2} 106 local service=${2}
107 local ud=$(_systemd_get_unitdir) 107 local ud=$(_systemd_get_unitdir)
108 local destname=$(basename "${service}")
108 109
109 dodir "${ud}"/"${target}".wants && \ 110 dodir "${ud}"/"${target}".wants && \
110 dosym ../"${service}" "${ud}"/"${target}".wants 111 dosym ../"${service}" "${ud}"/"${target}".wants/"${destname}"
111} 112}
112 113
113# @FUNCTION: systemd_with_unitdir 114# @FUNCTION: systemd_with_unitdir
114# @USAGE: [configure option] 115# @USAGE: [configure option]
115# @DESCRIPTION: 116# @DESCRIPTION:

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20