alegrey91 / alegrey91/fwdctl

add more flags to systemd generate command

オープン
#32 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement good first issue
主要言語
Go
スター
72
フォーク
7
PR マージ指標
30日以内にマージされた PR はありません

説明

In order to better customize the generated systemd service, fwdctl should provide more flags to change default parameters.
An example could be:
```
generates systemd service file to run fwdctl at boot

Usage:
fwdctl generate systemd [flags]

Flags:
-f, --file string rules file (default "rules.yml")
-h, --help help for systemd
-p, --installation-path string fwdctl installation path (default "/usr/local/bin")
-t, --type string systemd service type [oneshot, fork] (default "oneshot")
-s, --restart-sec systemd service restart seconds (works only with service of type "fork") (default: 5s)

Global Flags:
-O, --output-path string output path
```
Where a new parameter (`-s`) is provided and works only with service type `fork`.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。