[feature-systemd] Clarify status logging for service

This commit is contained in:
Rico Tiongson 2017-11-14 00:38:46 +08:00
parent 7900cc95e1
commit 8b9b960154
3 changed files with 25 additions and 3 deletions

View File

@ -39,6 +39,25 @@ Useful References:
- [How to turn on Workspaces?](https://askubuntu.com/questions/260510/how-do-i-turn-on-workspaces-why-do-i-only-have-one-workspace) - [How to turn on Workspaces?](https://askubuntu.com/questions/260510/how-do-i-turn-on-workspaces-why-do-i-only-have-one-workspace)
- [How to set keyboard shortcuts in Ubuntu](https://help.ubuntu.com/stable/ubuntu-help/keyboard-shortcuts-set.html) - [How to set keyboard shortcuts in Ubuntu](https://help.ubuntu.com/stable/ubuntu-help/keyboard-shortcuts-set.html)
### Other Commands
You can run `comfortable-swipe help` to see a list of commands:
```
$ comfortable-swipe help
comfortable-swipe [start|stop|status|restart|buffer|help]
start - starts 3/4-finger gesture service
stop - stops 3/4-finger gesture service
status - shows the status of the program (service log)
restart - stops then starts 3/4-finger gesture service
buffer - parses output of libinput-debug-events
help - shows the help dialog
Configuration file can be found in /usr/local/share/comfortable-swipe.conf
```
### Configurations ### Configurations
The configuration file is located at `/usr/local/share/comfortable-swipe.conf`. The configuration file is located at `/usr/local/share/comfortable-swipe.conf`.
Run `comfortable-swipe restart` after making changes. Run `comfortable-swipe restart` after making changes.
@ -63,4 +82,4 @@ Create an issue [here](https://github.com/Hikari9/comfortable-swipe-ubuntu/issue
to add the following to your issue: to add the following to your issue:
1. Content of `.log` (found in the cloned folder) 1. Content of `.log` (found in the cloned folder)
2. Output of `sudo systemctl status comfortable-swipe.service` 2. Output of `comfortable-swipe status`

View File

@ -4,7 +4,10 @@ if [ $(id -u) != "0" ]; then
sudo bash "$0" "$@" sudo bash "$0" "$@"
exit $? exit $?
fi fi
echo "Install $(date)" >> .log
echo "
Install $(date)" >> .log
DIR=$(dirname $0) DIR=$(dirname $0)
PROGRAM=/usr/local/bin/comfortable-swipe PROGRAM=/usr/local/bin/comfortable-swipe
CONF_PATH=/usr/local/share/comfortable-swipe.conf CONF_PATH=/usr/local/share/comfortable-swipe.conf

View File

@ -275,7 +275,7 @@ namespace service {
puts(""); puts("");
puts("start - starts 3/4-finger gesture service"); puts("start - starts 3/4-finger gesture service");
puts("stop - stops 3/4-finger gesture service"); puts("stop - stops 3/4-finger gesture service");
puts("status - shows the status of the program"); puts("status - shows the status of the program (service log)");
puts("restart - stops then starts 3/4-finger gesture service"); puts("restart - stops then starts 3/4-finger gesture service");
puts("buffer - parses output of libinput-debug-events"); puts("buffer - parses output of libinput-debug-events");
puts("help - shows the help dialog"); puts("help - shows the help dialog");