diff options
author | Adam Mathes <adam@trenchant.org> | 2017-02-20 12:03:03 -0800 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2017-02-20 12:03:03 -0800 |
commit | 58edb2b02b9605b053fa2d2ab7de17f2b8eb30b4 (patch) | |
tree | 2826ed9cdbdc81b7ccdbb4f3134e5eb56367de96 | |
parent | e0ec1f8176c677d841745d8b90ebb5dc91511ea1 (diff) | |
download | neko-58edb2b02b9605b053fa2d2ab7de17f2b8eb30b4.tar.gz neko-58edb2b02b9605b053fa2d2ab7de17f2b8eb30b4.tar.bz2 neko-58edb2b02b9605b053fa2d2ab7de17f2b8eb30b4.zip |
fix cmd line for newfeed
-rw-r--r-- | etc/neko.service | 12 | ||||
-rw-r--r-- | main.go | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/etc/neko.service b/etc/neko.service new file mode 100644 index 0000000..4acb640 --- /dev/null +++ b/etc/neko.service @@ -0,0 +1,12 @@ +# neko rss reader + +[Unit] +Description=neko +After=mysql.service + +[Service] +User=nobody +ExecStart=neko -serve -c /etc/neko.config + +[Install] +WantedBy=multi-user.target
\ No newline at end of file @@ -21,7 +21,7 @@ func main() { flag.StringVar(&newFeed, "add", "", "add feed `http://example.com/rss.xml`") flag.Parse() - if !update && !serve { + if !update && !serve && newFeed == ""{ flag.Usage() return } |