- add service file\n- add config file system

This commit is contained in:
Mewrry the Kitty 2026-02-13 09:56:09 -06:00
parent 74542329f2
commit 7988bb936e
3 changed files with 159 additions and 32 deletions

66
various/mewny.conf Normal file
View file

@ -0,0 +1,66 @@
# This is an example config file for
# a mewny server. I warn against
# putting spaces at the end of lines
# as that may cause confusion to you
# or the program. Note that despite
# being formatted mostly like the
# mewny protocol, this is unlike
# that protocol in that
# 1. This file is NOT necessarily
# forwards compatible with future
# versions of this software.
# 2. This file uses octothorpes (#) to
# denote comments.
# 3. This file uses human-readable
# 'version' strings before the
# initial bar.
# I hope you find this configuration
# file useful :3
# The paragraph below will describe
# how this document is formatted.
# This is a comment describing an option
# The option is placed below with a
# sensable or its default value like
# so...
#option|sensible-or-default-value
# Set the port
#port|7570
# Number of rows in the grid
#rows|24
# Number of columns in the grid
#cols|40
# Expose this instance to the world
# Only do this if you are very stupid
# or entirely know what you are doing.
# Set the value past the bar to 'please'
# (without quotes) to make this work
# as described.
# The command line option for this
# is --expose-this-instance-for-the
# -world-to-see-because-I-know-what
# -I'm-doing and accepts an argument
# which preferably says please.
#call-me-stupid|if-you-*Have*-to
# Do not expose this instance to the
# world (Opposite of call-me-stupid)
# Any value past the bar will enable
# this, and it is enabled by default
# unless the stupid 'call-me-stupid'
# option is enabled.
#private|makes-the-dev-happy
# Save file to write the grid to
# This has no default value but is
# confgiured to match the service
# file below:
save-file|/var/lib/mewny/mewny_savefile
# Save file autosave interval in seconds
# 600 seconds is 10m btw
#save-interval|600

19
various/mewny.service Normal file
View file

@ -0,0 +1,19 @@
[Unit]
Description=Mewny Server
After=network.target
Documentation=https://git.linuxposting.xyz/mewrrythekibby/mewny
[Service]
Type=simple
ExecStart=mewny --server --config-file /etc/mewny/mewny.conf
User=mewny
Group=mewny
WorkingDirectory=/var/lib/mewny
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target