Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
soledad
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Victor
soledad
Commits
23cbe095
Commit
23cbe095
authored
10 years ago
by
Kali Kaneko
Browse files
Options
Downloads
Patches
Plain Diff
make init file a symlink
parent
03ed4194
Branches
debian/platform-0.6
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/soledad-server.init
+1
-79
1 addition, 79 deletions
debian/soledad-server.init
debian/soledad-server.init
+1
-79
1 addition, 79 deletions
debian/soledad-server.init
with
2 additions
and
158 deletions
debian/soledad-server.init
deleted
100644 → 0
+
1
−
79
View file @
03ed4194
#!/bin/sh
### BEGIN INIT INFO
# Provides: soledad
# Required-Start: $network $named $remote_fs $syslog $time
# Required-Stop: $network $named $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start soledad daemon at boot time
# Description: Synchronization of locally encrypted data among devices
### END INIT INFO
PATH
=
/sbin:/bin:/usr/sbin:/usr/bin
PIDFILE
=
/var/run/soledad.pid
RUNDIR
=
/var/lib/soledad/
OBJ
=
leap.soledad.server.application
LOGFILE
=
/var/log/soledad.log
HTTPS_PORT
=
2424
CERT_PATH
=
/etc/leap/soledad-server.pem
PRIVKEY_PATH
=
/etc/leap/soledad-server.pem
TWISTD_PATH
=
/usr/bin/twistd
HOME
=
/var/lib/soledad/
[
-r
/etc/default/soledad
]
&&
.
/etc/default/soledad
test
-r
/etc/leap/
||
exit
0
.
/lib/lsb/init-functions
is_true
()
{
if
[
"x
$1
"
=
"xtrue"
-o
"x
$1
"
=
"xyes"
-o
"x
$1
"
=
"x0"
]
;
then
return
0
else
return
1
fi
}
case
"
$1
"
in
start
)
if
is_true
"
$START
"
;
then
echo
-n
"Starting soledad: twistd"
start-stop-daemon
--start
--quiet
--exec
$TWISTD_PATH
--
\
--pidfile
=
$PIDFILE
\
--logfile
=
$LOGFILE
\
web
\
--wsgi
=
$OBJ
\
--port
=
ssl:
$HTTPS_PORT
:privateKey
=
$PRIVKEY_PATH
:certKey
=
$CERT_PATH
echo
"."
else
echo
""
echo
"soledad-server is not configured to start, please edit /etc/default/soledad to enable"
fi
;;
stop
)
echo
-n
"Stopping soledad: twistd"
start-stop-daemon
--stop
--quiet
\
--pidfile
$PIDFILE
echo
"."
;;
restart
)
$0
stop
$0
start
;;
force-reload
)
$0
restart
;;
status
)
status_of_proc
-p
$PIDFILE
$TWISTD_PATH
soledad
&&
exit
0
||
exit
$?
;;
*
)
echo
"Usage: /etc/init.d/soledad {start|stop|restart|force-reload|status}"
>
&2
exit
1
;;
esac
exit
0
This diff is collapsed.
Click to expand it.
debian/soledad-server.init
0 → 120000
+
1
−
79
View file @
23cbe095
../server/pkg/soledad-server
\ No newline at end of file
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