Skip to content

配置文件 & sqlite 数据库 & systemd 支持 #109

Answered by LucienShui
fcwys asked this question in Q&A
Discussion options

You must be logged in to vote

你好,感谢对此项目的关注。

  1. 已支持,通过 -c 指定配置文件,配置文件格式参考 config.example.json
  2. 已支持,在配置文件中修改即可。
  3. 仅供参考:
[Unit]
Description=PasteMe Server Service
After=network.target

[Service]
Type=simple
User=nobody
Restart=on-failure
RestartSec=5s
ExecStart=/usr/local/pastemed/pastemed -c /etc/pastemed/config.json

[Install]
WantedBy=multi-user.target

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fcwys
Comment options

Answer selected by LucienShui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #109 on December 15, 2020 01:59.