Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
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
Monitor
Service Desk
Analyze
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
nodes
typescript
duniter
Commits
b56ea740
Commit
b56ea740
authored
9 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
Fix
#304
Restart was not working
parent
2e1f4e5a
No related branches found
Branches containing commit
Tags
v0.13.4
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/daemon
+9
-2
9 additions, 2 deletions
bin/daemon
with
9 additions
and
2 deletions
bin/daemon
+
9
−
2
View file @
b56ea740
...
...
@@ -4,8 +4,6 @@
var
directory
=
require
(
'
../app/lib/directory
'
);
var
path
=
require
(
'
path
'
);
var
Tail
=
require
(
'
always-tail
'
);
var
fs
=
require
(
'
fs
'
);
var
util
=
require
(
'
util
'
);
var
daemon
=
require
(
"
daemonize2
"
).
setup
({
main
:
"
ucoind
"
,
...
...
@@ -34,6 +32,15 @@ switch (process.argv[2]) {
break
;
case
"
restart
"
:
daemon
=
require
(
"
daemonize2
"
).
setup
({
main
:
"
ucoind
"
,
name
:
directory
.
INSTANCE_NAME
,
pidfile
:
path
.
join
(
directory
.
INSTANCE_HOME
,
"
app.pid
"
),
// We must redefine the main argument to 'start' because uCoin will receive it as command argument and does not
// know about 'restart' command.
argv
:
process
.
argv
.
slice
(
2
).
map
((
arg
,
index
)
=>
index
==
0
?
'
start
'
:
arg
)
});
daemon
.
stop
(
function
(
err
)
{
err
&&
console
.
error
(
err
);
daemon
.
start
();
...
...
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