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

Commit

Permalink
🎨 内核进程增加常驻内存参数 Fix siyuan-note/siyuan#277
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Oct 19, 2020
1 parent 17eb35a commit 040f8da
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion 通用操作/启动参数_20200828105441-r76vmu5.sy.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
目前支持的启动参数如下:

* `--conf`:用于指定配置文件文件夹路径,不指定时的默认值是 `~/.siyuan/`
## `--conf`

用于指定配置文件文件夹路径,不指定时的默认值是 `~/.siyuan/`

## `--resident`

`--resident=true` 使用常驻内存,即使没有活动会话也不会自动退出,默认 `false`

设置为 `true` 这在单独启动内核使用的场景(比如通过浏览器使用)时会比较有用。即使当前没有在使用思源笔记(浏览器没有和内核建立会话),内核进程也不会退出。默认 `false` 时内核进程会每隔 7 秒扫描一次会话,如果没有会话则退出进程。

0 comments on commit 040f8da

Please sign in to comment.