Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakub Panek
aports
Commits
171df570
Commit
171df570
authored
15 years ago
by
Natanael Copa
Browse files
Options
Downloads
Patches
Plain Diff
sample: use lowercase in init.d/conf.d sample files
parent
5847b547
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sample.confd
+2
-2
2 additions, 2 deletions
sample.confd
sample.initd
+10
-20
10 additions, 20 deletions
sample.initd
with
12 additions
and
22 deletions
sample.confd
+
2
−
2
View file @
171df570
# Sample conf.d file for alpine linux
# Sample conf.d file for alpine linux
#
#
# Specify daemon
$OPTS
here.
# Specify daemon
options
here.
#
#
OPTS
=
""
sample_opts
=
""
This diff is collapsed.
Click to expand it.
sample.initd
+
10
−
20
View file @
171df570
...
@@ -2,38 +2,28 @@
...
@@ -2,38 +2,28 @@
# Sample init.d file for alpine linux.
# Sample init.d file for alpine linux.
NAME
=
name
=
DAEMON
=
/usr/sbin/
$
NAME
daemon
=
/usr/sbin/
$
name
depend
()
{
depend
()
{
need net
need net
after firewall
}
}
start
()
{
start
()
{
ebegin
"Starting
${
NAME
}
"
ebegin
"Starting
${
name
}
"
start-stop-daemon
--start
--quiet
\
start-stop-daemon
--start
--quiet
\
--pidfile
/var/run/
${
NAME
}
.pid
\
--pidfile
/var/run/
${
name
}
.pid
\
--chuid
${
DAEMON_USER
}
:
${
DAEMON_GROUP
}
\
--chuid
${
sample_user
}
:
${
sample_group
}
\
--exec
${
DAEMON
}
--
${
OPTS
}
--exec
${
daemon
}
--
${
sample_opts
}
eend
$?
eend
$?
}
}
stop
()
{
stop
()
{
ebegin
"Stopping
${
NAME
}
"
ebegin
"Stopping
${
name
}
"
start-stop-daemon
--stop
--quiet
\
start-stop-daemon
--stop
--quiet
\
--exec
${
DAEMON
}
\
--pidfile
/var/run/
$name
.pid
\
--pidfile
/var/run/
${
NAME
}
.pid
\
--exec
${
daemon
}
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
eend
$?
eend
$?
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment