Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
Add man page / help text for 'sy daemon'
Browse files Browse the repository at this point in the history
  • Loading branch information
binwiederhier committed Sep 6, 2014
1 parent 24d98a2 commit 453feae
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gradle/daemon/syncanyd.skel
Expand Up @@ -168,11 +168,11 @@ case "$1" in
daemon_force_stop
;;
*)
echo "Usage: sy daemon (start|stop|reload|restart|status|force-stop)"
#JAVA_EXEC_REPLACEMENT_MARKER#
;;
esac
;;
*)
#JAVA_EXEC_REPLACEMENT_MARKER#
#JAVA_EXEC_REPLACEMENT_MARKER#
;;
esac
2 changes: 1 addition & 1 deletion gradle/gradle/application.java.gradle
Expand Up @@ -26,7 +26,7 @@ subprojects {

processResources {
from(source) {
include "**/*.properties", "**/*.xml"
include "**/*.properties", "**/*.xml", "**/*.skel"
filter{ String line -> line.replaceAll('%applicationRelease%', "${applicationRelease}") }
filter{ String line -> line.replaceAll('%applicationVersion%', "${applicationVersion}") }
filter{ String line -> line.replaceAll('%applicationVersionFull%', "${applicationVersionFull}") }
Expand Down
@@ -0,0 +1,39 @@
NAME
sy-daemon - starts and stops the background process (daemon)

SYNOPSIS
sy daemon (start|stop|reload|restart|status|force-stop)

DESCRIPTION
This command manages the Syncany background process (aka the daemon). It can
start and stop the daemon, display the status and reload the daemon
configuration.

This daemon can be started with `sy daemon start`. Once it is running, all
registered folders are monitored for changes and remote changes are
automatically applied to the local folder(s). All of these actions happen
in the background, without the need for any intervention.

The daemon is configured using the `daemon.xml` file at
~/.config/syncany/daemon.xml.

OPTIONS
start
Starts the background process (if it is not already running).

stop
Stops the background process (if it is running).

reload
Reloads the daemon configuration without restarting the proces.

restart
Stops, then starts the daemon again.

status
Displays the status and the process ID (PID) of the daemon.

force-stop
Forces the process to stop. Do not use this unless absolutely necessary!

%RESOURCE:incl/footer.skel%
3 changes: 2 additions & 1 deletion syncany-cli/src/main/resources/org/syncany/cli/cmd/help.skel
Expand Up @@ -24,6 +24,7 @@ DESCRIPTION
restore Restore the given file paths from the remote repository.
genlink Create a syncany:// link from an existing local folder.
plugin List, install and remove storage backend plugins.
daemon Start and stop the background process (daemon).

Short command descriptions and options can be found below. Detailed
explanations can be queried with `sy <command> --help`.
Expand Down Expand Up @@ -62,4 +63,4 @@ REPORTING BUGS
Please report bugs to the GitHub issues page at
https://www.github.com/syncany/syncany/issues

%RESOURCE:incl/footer.skel%
%RESOURCE:incl/footer.skel%

0 comments on commit 453feae

Please sign in to comment.