Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linuxconf
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
linuxconf
Commits
87acf0a9
There was an error fetching the commit references. Please try again later.
Commit
87acf0a9
authored
1 month ago
by
Recolic
Browse files
Options
Downloads
Patches
Plain Diff
.update.example
parent
1df1657c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/template/masterconf.sh
+5
-4
5 additions, 4 deletions
examples/template/masterconf.sh
with
5 additions
and
4 deletions
examples/template/masterconf.sh
+
5
−
4
View file @
87acf0a9
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
lc_include conf.d/
*
lc_include conf.d/
*
#
likely to use the following grammar in each sub conf:
#
If you have multiple user.. You might need this in your config file.
lc_assert_user_is root
lc_assert_user_is root
lc_assert_user_is_not root
lc_assert_user_is_not root
...
@@ -32,8 +32,11 @@ function lc_init () {
...
@@ -32,8 +32,11 @@ function lc_init () {
function
lc_startup
()
{
function
lc_startup
()
{
# as root / as user?
# as root / as user?
#
with
desktop env?
(not supported yet
)
#
You want
desktop env?
Use lc_login(
)
# want some daemon in background?
lcf_bgrun /tmp/server.log my_server
--arg1
123
--arg2
"hello world !"
lcf_bgrun /tmp/server.log auto_restart important_service
--gg
"example"
}
}
function
lc_login
()
{
function
lc_login
()
{
...
@@ -53,8 +56,6 @@ function lc_cron () {
...
@@ -53,8 +56,6 @@ function lc_cron () {
# Warning: watch out for unintended user
# Warning: watch out for unintended user
lc_fsmap files/vimrc
$LC_USER_HOME
/.vimrc
lc_fsmap files/vimrc
$LC_USER_HOME
/.vimrc
lc_daemon files/myservice.sh
# TODO: what if lc_fsmap depends on lc_init() ?? This is not recommended usage.
# TODO: what if lc_fsmap depends on lc_init() ?? This is not recommended usage.
# e.g: 'git clone xxx $HOME/sh' and lc_fsmap $HOME/sh/something /usr/bin/fancy
# e.g: 'git clone xxx $HOME/sh' and lc_fsmap $HOME/sh/something /usr/bin/fancy
# lc_fsmap should success even if $HOME/sh/something doesn't exist yet. (what if dest also not exist? let it fail...)
# lc_fsmap should success even if $HOME/sh/something doesn't exist yet. (what if dest also not exist? let it fail...)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment