Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
abuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
abuild
Commits
171df570
Commit
171df570
authored
Dec 30, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sample: use lowercase in init.d/conf.d sample files
parent
5847b547
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
22 deletions
+12
-22
sample.confd
sample.confd
+2
-2
sample.initd
sample.initd
+10
-20
No files found.
sample.confd
View file @
171df570
# Sample conf.d file for alpine linux
#
# Specify daemon
$OPTS
here.
# Specify daemon
options
here.
#
OPTS
=""
sample_opts
=""
sample.initd
View file @
171df570
...
...
@@ -2,38 +2,28 @@
# Sample init.d file for alpine linux.
NAME
=
DAEMON=/usr/sbin/$NAME
name
=
daemon=/usr/sbin/$name
depend() {
need net
after firewall
}
start() {
ebegin "Starting ${
NAME
}"
ebegin "Starting ${
name
}"
start-stop-daemon --start --quiet \
--pidfile /var/run/${
NAME
}.pid \
--chuid ${
DAEMON_USER}:${DAEMON_GROUP
} \
--exec ${
DAEMON} -- ${OPTS
}
--pidfile /var/run/${
name
}.pid \
--chuid ${
sample_user}:${sample_group
} \
--exec ${
daemon} -- ${sample_opts
}
eend $?
}
stop() {
ebegin "Stopping ${
NAME
}"
ebegin "Stopping ${
name
}"
start-stop-daemon --stop --quiet \
--exec ${DAEMON} \
--pidfile /var/run/${NAME}.pid \
eend $?
}
reload() {
ebegin "Reloading ${NAME}"
if ! service_started "${NAME}" ; then
eend 1 "${NAME} is not started"
return 1
fi
start-stop-daemon --stop --oknodo --signal HUP \
--exec ${DAEMON} --pidfile /var/run/${NAME}.pid
--pidfile /var/run/$name.pid \
--exec ${daemon}
eend $?
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment